/* ===== FLOATING PAYMENT BUTTON ===== */
.dx-floating-payment-change {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dx-floating-payment-change.visible {
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.dx-floating-payment-change button {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dx-floating-payment-change button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
}

.dx-floating-payment-change button:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .dx-floating-payment-change {
        bottom: 20px;
        right: 20px;
    }

    .dx-floating-payment-change button {
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* ===== PAYMENT METHOD MODAL ===== */
.dx-payment-modal {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.dx-payment-modal.active {
    display: flex;
}

.dx-payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100000;
}

.dx-payment-modal-content {
    position: relative;
    background-color: #fff;
    width: 90%;
    max-width: 900px;
    margin: auto; /* Ensure centering */
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 100001;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    animation: dx-modal-slide-up 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes dx-modal-slide-up {
    from {
        transform: scale(0.95) translateY(30px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.dx-payment-modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dx-payment-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dx-payment-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: white;
    font-size: 24px;
    line-height: 1;
}

.dx-payment-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.dx-payment-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

/* Payment Tabs */
.dx-payment-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e9ecef;
    flex-wrap: wrap;
}

.dx-payment-tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #6c757d;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
}

.dx-payment-tab:hover {
    color: #1a1a1a;
    background: #f8f9fa;
}

.dx-payment-tab.active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
    font-weight: 700;
}

/* Payment Options */
.dx-payment-options {
    display: none;
    animation: fadeIn 0.3s ease;
}

.dx-payment-options.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dx-payment-option {
    margin-bottom: 15px;
}

.dx-payment-option input[type="radio"] {
    display: none;
}

.dx-payment-label {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dx-payment-label:hover {
    background: #e9ecef;
    border-color: #1a1a1a;
}

.dx-payment-option input[type="radio"]:checked + .dx-payment-label {
    background: #ffffff;
    border-color: #1a1a1a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dx-payment-option input[type="radio"]:checked + .dx-payment-label::after {
    content: '';
    position: absolute;
    top: 16px;
    right: 20px;
    width: 24px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dx-payment-option input[type="radio"]:checked + .dx-payment-label::before {
    content: 'âœ“';
    position: absolute;
    top: 20px;
    right: 27px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    z-index: 1;
}

.dx-payment-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 15px;
    border-radius: 8px;
}

.dx-payment-details {
    flex: 1;
}

.dx-payment-details strong {
    display: block;
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 4px;
}

.dx-payment-details small {
    display: block;
    font-size: 13px;
    color: #6c757d;
}

/* Payment Instructions */
.dx-payment-instructions {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    border-left: 4px solid #1a1a1a;
}

.dx-payment-instructions h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dx-payment-instructions p {
    margin: 0;
    color: #6c757d;
    line-height: 1.6;
    font-size: 14px;
}

/* Modal Footer */
.dx-payment-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.dx-btn-cancel-modal {
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #6c757d;
    color: #6c757d;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
}

.dx-btn-cancel-modal:hover {
    background: #6c757d;
    color: white;
}

.dx-btn-save-payment {
    padding: 12px 32px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: none;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dx-btn-save-payment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.dx-btn-save-payment:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* No Payment Methods */
.dx-no-payment-methods {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.dx-no-payment-methods svg {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Clickable Number */
.dx-payment-info {
    margin-bottom: 4px;
}

.dx-payment-info small {
    margin-bottom: 0 !important;
}

.dx-clickable-number {
    color: #1a1a1a;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    transition: all 0.2s;
    padding: 2px 4px;
    border-radius: 3px;
    display: inline-block;
}

.dx-clickable-number:hover {
    background-color: #f0f0f0;
    text-decoration: underline;
    text-decoration-style: solid;
}

/* QRIS QR Code Layout - Full Width */
#qris-options .dx-payment-option {
    margin-bottom: 15px;
}

#qris-options .dx-payment-label-qris {
    flex-direction: column;
    align-items: center !important;
    padding: 16px;
    box-sizing: border-box;
    width: 100%;
}

.dx-qris-qr-container {
    width: 100%;
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
    box-sizing: border-box;
}

.dx-qris-qr {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* QRIS selected checkmark repositioned for column layout */
.dx-payment-option input[type="radio"]:checked + .dx-payment-label-qris::after {
    top: 12px;
    right: 12px;
}

.dx-payment-option input[type="radio"]:checked + .dx-payment-label-qris::before {
    top: 16px;
    right: 19px;
}

/* Responsive */
@media (max-width: 768px) {
    .dx-payment-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .dx-payment-modal-header,
    .dx-payment-modal-body,
    .dx-payment-modal-footer {
        padding: 20px;
    }

    .dx-payment-tabs {
        flex-direction: column;
    }

    .dx-payment-tab {
        min-width: auto;
    }

    .dx-payment-modal-footer {
        flex-direction: column-reverse;
    }

    .dx-btn-cancel-modal,
    .dx-btn-save-payment {
        width: 100%;
    }
}