.s360-quick-pay-container {
    display: flex;
    position: relative;
    width: fit-content;
}

.s360-quick-pay-btn {
    background: #fff;
    color: #001f60;
    border: 1px solid #b3b3b3;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.s360-quick-pay-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: var(--dropdown-left, 50%);
    right: var(--dropdown-right, auto);
    transform: var(--dropdown-transform, translateX(-50%));
    margin-top: 10px;
    z-index: 10000;
    min-width: 320px;
    max-width: 90vw;
}

/* Responsive positioning for small screens */
@media (max-width: 480px) {
    .s360-quick-pay-dropdown {
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        margin-left: -50px;
        margin-right: -50px;
        min-width: auto;
    }
    
    .s360-quick-pay-modal::before,
    .s360-quick-pay-modal::after {
        left: 50% !important;
    }
}

.s360-quick-pay-dropdown.active {
    display: block;
    animation: dropdownSlideIn 0.3s ease;
}

.s360-quick-pay-modal {
    background: white;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid #e1e5e9;
}

/* Arrow pointing up to the button */
.s360-quick-pay-modal::before {
    content: '';
    position: absolute;
    top: -8px;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
    z-index: 10001;
}

.s360-quick-pay-modal::after {
    content: '';
    position: absolute;
    top: -9px;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid #e1e5e9;
    z-index: 10000;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}


.s360-quick-pay-form {
    padding: 25px;
}

.s360-form-group {
    margin-bottom: 20px;
}

.s360-form-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.s360-form-input:focus {
    outline: none;
    border-color: #8B9DC3;
}

.s360-continue-btn {
    width: 100%;
    background: #28a745;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.s360-continue-btn:hover {
    background: #218838;
}

.s360-continue-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.s360-loading {
    padding: 40px 25px;
    text-align: center;
}

.s360-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #8B9DC3;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
