/* ===================================================
   PAYMENT METHODS & FORMS STYLES
   =================================================== */

/* Points Section */
.points-section {
    background: var(--bggradient);
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.points-section h3 {
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.points-input {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.points-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Clean Payment Methods — dùng chung cho Vận Chuyển / Thanh Toán / eCard để đồng bộ style */
.payment-methods,
.ecard-balance-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8ecef;
    margin-top: 16px;
    margin-bottom: 0;
    overflow: hidden;
}

.payment-methods h3,
.ecard-balance-section h3 {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    color: #2d3748;
    padding: 20px 16px;
    margin: 0;
    font-weight: 500;
    font-size: 0.95rem;
    font-family: var(--font-hel, sans-serif);
    border-bottom: 1px solid #e8ecef;
    display: flex;
    align-items: center;
}

#payging_btn {
    margin: 0px !important;
    width: 100% !important;
}

.payment-methods h3 i,
.ecard-balance-section h3 i {
    color: var(--background);
    margin-right: 0.6rem;
    font-size: 1rem;
}

/* eCard content — dùng chung form-group/form-input/form-label đã định nghĩa ở dưới */
.ecard-content {
    padding: 14px 16px;
}

.ecard-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.ecard-input-group .ecard-input {
    flex: 1;
    padding-right: 34px !important;
}

.ecard-input-group .input-suffix {
    position: absolute;
    right: 12px;
    color: #8a9099;
    font-weight: 500;
    font-size: 0.85rem;
    pointer-events: none;
}

.ecard-current-balance {
    color: var(--background);
    font-weight: 700;
}

.ecard-balance-info {
    margin-top: 6px;
}

.ecard-balance-info small {
    color: #8a9099;
    font-size: 0.76rem;
}

.seller-mode-group {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e8ecef;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #2d3748;
    font-size: 0.85rem;
    margin: 0;
}

.checkbox-label i {
    color: var(--background);
}

.seller-mode-info {
    margin-top: 4px;
    margin-left: 26px;
}

.seller-mode-info small {
    color: #8a9099;
    font-size: 0.76rem;
}

.ecard-summary {
    margin-top: 12px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eef1f4;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    margin-bottom: 6px;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-row span:first-child {
    color: #2d3748;
}

.summary-row span:last-child {
    font-weight: 700;
    color: var(--background);
}

.seller-commission span:last-child {
    color: #007bff;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #eef1f4;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    background: #fff;
    position: relative;
    border-left: 3px solid transparent;
    gap: 10px;
}

.payment-method:last-child {
    border-bottom: none;
}

.payment-method:hover {
    background: #f8f9fa;
}

.payment-method.active {
    background: rgba(0, 0, 0, 0.025);
    border-left-color: var(--background);
}

.payment-method input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d5dae0;
    border-radius: 50%;
    margin: 0;
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s ease;
    background: #fff;
    flex-shrink: 0;
}

.payment-method input[type="radio"]:hover {
    border-color: var(--background);
}

.payment-method input[type="radio"]:checked {
    border-color: var(--background);
}

.payment-method input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--background);
}

.payment-method-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.payment-method strong {
    display: block;
    margin-bottom: 1px;
    color: #2c3e50;
    font-size: 0.86rem;
    font-weight: 600;
    font-family: var(--font-hel, sans-serif);
    line-height: 1.3;
}

.payment-method p {
    color: #8a9099;
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.35;
    font-family: var(--font-hel, sans-serif);
}

.payment-method p:empty {
    display: none;
}

/* Shipping Methods - same compact style, neutral accent */
.shipping-method {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #eef1f4;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    background: #fff;
    position: relative;
    border-left: 3px solid transparent;
    gap: 10px;
}

.shipping-method:last-child {
    border-bottom: none;
}

.shipping-method:hover {
    background: #f8f9fa;
}

.shipping-method.active {
    background: rgba(0, 0, 0, 0.025);
    border-left-color: #6c757d;
}

.shipping-method input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d5dae0;
    border-radius: 50%;
    margin: 0;
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s ease;
    background: #fff;
    flex-shrink: 0;
}

.shipping-method input[type="radio"]:hover {
    border-color: #6c757d;
}

.shipping-method input[type="radio"]:checked {
    border-color: #6c757d;
}

.shipping-method input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6c757d;
}
.payment-method-hidden {
    display: none;
}
.payment-method-hidden.show {
    display: flex;
}
#viewAllPaymentBtn i::before {
    content: "\f06e";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}
#viewAllPaymentBtn.active i::before {
    content: "\f070";
}
.shipping-method-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.shipping-method-content strong {
    display: block;
    margin-bottom: 1px;
    color: #2c3e50;
    font-size: 0.86rem;
    font-weight: 600;
    font-family: var(--font-hel, sans-serif);
    line-height: 1.3;
}

.shipping-method-content p {
    color: #8a9099;
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.35;
    font-family: var(--font-hel, sans-serif);
}

.shipping-method-content p:empty {
    display: none;
}

/* Form Elements */
.form-group {
    margin-bottom: 0.75rem;
}

.form-label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.85rem;
}

.form-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.85rem;
    background: #fff;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--background);
    outline: none;
    box-shadow: 0 0 0 0.1rem rgba(0, 150, 136, 0.15);
}

.form-select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.85rem;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--background) 0%, #f39c12 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.95rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.25rem 0 0;
    font-family: var(--font-hel, sans-serif);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #f39c12 0%, var(--background) 100%);
}

.checkout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-group.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* Disabled state for buttons */
.disableevent {
    pointer-events: none !important;
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

.checkout-btn.disableevent {
    background: #6c757d !important;
    transform: none !important;
    box-shadow: none !important;
}

.coupon-btn.disableevent {
    background: #6c757d !important;
    transform: none !important;
    box-shadow: none !important;
}

#payging_btn span, #payging_btn i {
    font-size: 1rem !important;
    color: #fff !important;
} 