/* Form Container */
.wpayme-pay-form-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.wpayme-pay-form {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Product Image */
.wpayme-pay-product-image {
    text-align: center;
    margin-bottom: 20px;
}

.wpayme-product-thumbnail {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Product Description */
.wpayme-pay-product-description {
    margin-bottom: 25px;
}

/* Fieldsets */
.wpayme-pay-form fieldset {
    border: 1px solid #e5e5e5;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 6px;
}

.wpayme-pay-form legend {
    font-weight: 600;
    padding: 0 10px;
    margin: 0;
    font-size: 16px;
}

/* Sections */
.wpayme-pay-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.wpayme-pay-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.wpayme-pay-section-title {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 15px 0;
}

/* Amount Options */
.wpayme-pay-fixed-price {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.wpayme-pay-amount-input-only {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    padding: 10px 15px;
    border-radius: 4px;
}

.wpayme-pay-currency-symbol {
    font-weight: 600;
    margin-right: 5px;
}

.wpayme-pay-amount-input {
    flex: 1;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 4px;
}

.wpayme-pay-amount-choices {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.wpayme-pay-amount-choice {
    position: relative;
}

.wpayme-pay-amount-choice input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.wpayme-pay-amount-choice label {
    display: block;
    padding: 12px;
    text-align: center;
    background: #f5faff;
    border: 2px solid #e2edf9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #3a87ad;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

/* Random pastel colors for different amount choices */
.wpayme-pay-amount-choice:nth-child(5n+1) label {
    background: #e6f7ff; /* Light blue */
    border-color: #c2e6ff;
    color: #0078d4;
}

.wpayme-pay-amount-choice:nth-child(5n+2) label {
    background: #e9f5e9; /* Light green */
    border-color: #c5e5c5;
    color: #2c7a2c;
}

.wpayme-pay-amount-choice:nth-child(5n+3) label {
    background: #fff6e6; /* Light orange */
    border-color: #ffe2b3;
    color: #b66a00;
}

.wpayme-pay-amount-choice:nth-child(5n+4) label {
    background: #f5edfe; /* Light purple */
    border-color: #e4d2fa;
    color: #7a43b6;
}

.wpayme-pay-amount-choice:nth-child(5n+5) label {
    background: #ffe9ed; /* Light pink */
    border-color: #ffc1cc;
    color: #d43770;
}

.wpayme-pay-amount-choice label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.wpayme-pay-amount-choice input[type="radio"]:checked + label {
    background: #4ADE80; /* Light green background */
    border-color: #22C55E; /* Slightly darker green for the border */
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(74, 222, 128, 0.25);
    position: relative;
    padding-left: 35px; /* Space for the left icon */
    padding-bottom: 12px; /* Normal padding */
    text-align: center; /* Keep text centered */
    padding-right: 35px; /* Balance the left padding to center text */
}

.wpayme-pay-amount-choice input[type="radio"]:checked + label::after {
    content: "✓";
    position: absolute;
    left: 10px; /* Position on the left */
    top: 50%; /* Vertically center */
    transform: translateY(-50%); /* Vertical centering */
    width: 18px;
    height: 18px;
    background: #fff;
    color: #4ADE80; /* Match the new background color */
    border-radius: 50%;
    font-size: 12px;
    line-height: 18px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    animation: pulse-left 1s ease-in-out;
}

@keyframes pulse-left {
    0% {
        transform: translateY(-50%) scale(0.5);
        opacity: 0;
    }
    70% {
        transform: translateY(-50%) scale(1.2);
    }
    100% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
}

/* Custom highlight effect for the selected amount */
.wpayme-pay-amount-choice input[type="radio"]:checked + label::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 10px;
    background: transparent;
    border: 2px solid #4ADE80; /* Match the new background color */
    opacity: 0.5;
    z-index: -1;
    animation: expand 0.3s ease-out forwards;
}

@keyframes expand {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 0.5;
        transform: scale(1);
    }
}

.wpayme-pay-custom-amount {
    grid-column: 1 / -1;
}

/* Custom amount field adjustments */
.wpayme-pay-custom-amount-label {
    padding-left: 35px !important; /* Match the left padding of the other labels */
    padding-right: 35px !important; /* Balance padding for centered text */
    display: flex !important;
    align-items: center;
    justify-content: center !important; /* Center the content */
    text-align: center !important;
}

.wpayme-pay-custom-amount input[type="radio"]:checked + label .wpayme-pay-custom-amount-input {
    color: #222 !important; /* Make input text white when selected */
    background-color: transparent !important;
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important; /* Expand to fill available space */
    font-weight: 600 !important;
}

.wpayme-pay-custom-amount input[type="radio"]:checked + label .wpayme-pay-custom-amount-input:focus-visible {
    outline: none !important;
}


.wpayme-pay-custom-amount-input {
    border: none !important;
    background: transparent !important;
    width: calc(100% - 70px) !important; /* Adjust width to account for both left and right padding */
    padding: 0 5px !important;
    text-align: center !important;
}

/* Ensure the checkmark is still visible in custom amount field */
.wpayme-pay-custom-amount input[type="radio"]:checked + label::after {
    left: 10px !important;
    color: #4ADE80 !important; /* Match the new background color */
}

/* Variants */
.wpayme-pay-variants select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Quantity */
.wpayme-pay-quantity-controls {
    display: flex;
    align-items: center;
    max-width: 150px;
    margin: 0 auto;
}

.wpayme-pay-quantity-minus,
.wpayme-pay-quantity-plus {
    width: 36px;
    height: 36px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.wpayme-pay-quantity-input {
    flex: 1;
    text-align: center;
    border: 1px solid #ddd;
    margin: 0 5px;
    padding: 8px;
    border-radius: 4px;
}

/* Stock Information */
.wpayme-pay-stock-info {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.wpayme-pay-out-of-stock {
    text-align: center;
    padding: 10px;
    background-color: #f2dede;
    color: #a94442;
    border-radius: 4px;
    font-weight: bold;
}

.wpayme-pay-out-of-stock-button {
    opacity: 0.7;
}

/* Currency Selection */
.wpayme-pay-currency-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Price Breakdown */
.wpayme-pay-price-breakdown {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
}

.wpayme-pay-price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.wpayme-pay-price-row:last-child {
    margin-bottom: 0;
}

.wpayme-pay-total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
    font-weight: 600;
}

/* Payment Methods */
.wpayme-pay-payment-method-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wpayme-pay-payment-method-list li {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.wpayme-pay-payment-method-list li:last-child {
    margin-bottom: 0;
}

.wpayme-pay-payment-method-list input[type="radio"] {
    margin-right: 10px;
}

.wpayme-pay-payment-method-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex: 1;
}

.wpayme-pay-gateway-icon {
    max-height: 24px;
    margin-right: 10px;
}

/* Submit Button */
.wpayme-pay-submit-button-wrap {
    margin-top: 20px;
    text-align: center;
}

.wpayme-pay-submit {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.wpayme-pay-submit:hover {
    background-color: #005a87;
}

/* Responsive */
@media (max-width: 600px) {
    .wpayme-pay-amount-choices {
        grid-template-columns: 1fr;
    }
    
    .wpayme-pay-form {
        padding: 15px;
    }
    
    .wpayme-pay-form fieldset {
        padding: 15px;
    }
}

/* Coupon Styles */
.wpayme-pay-coupon-section {
    margin-top: 20px;
}

.wpayme-pay-coupon-form {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.wpayme-pay-coupon-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
}

.wpayme-pay-coupon-button {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    font-weight: 500;
}

.wpayme-pay-coupon-button:hover {
    background-color: #e0e0e0;
}

.wpayme-pay-coupon-message {
    margin-top: 8px;
    font-size: 13px;
}

.wpayme-pay-coupon-message.success {
    color: #3c763d;
}

.wpayme-pay-coupon-message.error {
    color: #a94442;
}

.wpayme-pay-price-row.wpayme-pay-discount {
    color: #3c763d;
}

/* Coupon Styles */
.wpayme-coupon-container {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.wpayme-coupon-header {
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.wpayme-coupon-field {
    display: flex;
    gap: 10px;
}

.wpayme-coupon-input {
    flex: 1;
    height: 40px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.wpayme-apply-coupon-btn {
    height: 40px;
    padding: 5px 15px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.wpayme-apply-coupon-btn:hover {
    background: #43A047;
}

.wpayme-apply-coupon-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.wpayme-coupon-applied {
    display: none;
}

.wpayme-coupon-code {
    display: inline-flex;
    align-items: center;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    color: #2e7d32;
    font-weight: 500;
}

.wpayme-remove-coupon {
    margin-left: 8px;
    color: #e53935;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    line-height: 1;
}

.wpayme-discount-amount {
    margin-top: 10px;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 4px;
    color: #2e7d32;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
}

.wpayme-coupon-message {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
}

.wpayme-coupon-error {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    color: #c62828;
}

.wpayme-coupon-success {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
} 