/* GMG Financing Floater Widget Styles */

/* Floating Trigger Button */
.gmg-floater-trigger {
    position: fixed;
    bottom: 0;
    right: 0;
    background: #0E202F;
    color: #FFFFFF;
    padding: 16px 24px;
    border-radius: 8px 0 0 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9998;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
    font-family: 'Open Sans', sans-serif;
}

.gmg-floater-trigger:hover {
    transform: translateY(-2px);
}

.gmg-floater-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.gmg-floater-text {
    display: flex;
    flex-direction: column;
}

.gmg-floater-text-main {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.gmg-floater-text-sub {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.2;
}

/* Modal Overlay */
.gmg-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Open Sans', sans-serif;
}

.gmg-modal-overlay.active {
    display: flex;
}

/* Modal */
.gmg-modal {
    background: #FFFFFF;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.gmg-modal-header {
    position: relative;
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.gmg-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: #0E202F;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: opacity 0.2s;
    line-height: 1;
}

.gmg-modal-close:hover {
    opacity: 0.8;
}

.gmg-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #0E202F;
    margin-bottom: 8px;
    margin-right: 40px;
}

.gmg-modal-subtitle {
    font-size: 14px;
    color: #666;
}

.gmg-modal-body {
    padding: 24px;
}

/* Amount Selector */
.gmg-amount-selector {
    margin-bottom: 24px;
}

.gmg-amount-label {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    display: block;
    font-weight: 600;
}

.gmg-amount-dropdown {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #0E202F;
    background: #f8f9fa;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230E202F' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    transition: border-color 0.2s;
}

.gmg-amount-dropdown:focus {
    outline: none;
    border-color: #0E202F;
}

/* Payment Plans */
.gmg-payment-plans {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.gmg-payment-plan {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    transition: border-color 0.2s;
}

.gmg-payment-plan:hover {
    border-color: #0E202F;
}

.gmg-payment-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.gmg-payment-amount {
    font-size: 28px;
    font-weight: 700;
    color: #0E202F;
    line-height: 1.2;
}

.gmg-payment-period {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

.gmg-details-toggle {
    background: transparent;
    border: 1px solid #0E202F;
    color: #0E202F;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.gmg-details-toggle:hover {
    background: #0E202F;
    color: #FFFFFF;
}

.gmg-details-content {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
    color: #666;
}

.gmg-details-content.active {
    display: block;
}

/* CTA Button */
.gmg-cta-button {
    width: 100%;
    background: #0E202F;
    color: #FFFFFF;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
    display: block;
    text-align: center;
}

.gmg-cta-button:hover {
    opacity: 0.9;
    color: #FFFFFF;
}

/* Features */
.gmg-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.gmg-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.gmg-feature::before {
    content: "✓";
    color: #0E202F;
    font-weight: bold;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gmg-floater-trigger {
        width: 100%;
        right: 0;
        border-radius: 0;
        padding: 12px 16px;
    }

    .gmg-floater-text-main {
        font-size: 14px;
    }

    .gmg-floater-text-sub {
        font-size: 11px;
    }

    .gmg-floater-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .gmg-modal {
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        max-height: 95vh;
    }

    .gmg-modal-header {
        padding: 20px;
    }

    .gmg-modal-title {
        font-size: 20px;
    }

    .gmg-modal-body {
        padding: 20px;
    }

    .gmg-payment-plans {
        grid-template-columns: 1fr;
    }

    .gmg-payment-amount {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .gmg-payment-plan-header {
        flex-direction: column;
        gap: 12px;
    }

    .gmg-details-toggle {
        align-self: flex-start;
    }
}

