.gp-installments-trigger {
    display: none;
    margin: 20px 0;
    text-align: center;
}

.gp-installments-trigger.show-trigger {
    display: flex;
}

.gp-installments-button {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gp-installments-button:hover {
    background: #005a87;
}

/* Modal Overlay */
.gp-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.gp-modal-overlay.gp-modal-show {
    display: flex;
}

/* Modal Container */
.gp-modal-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    animation: gp-modal-slide-in 0.3s ease-out;
}

@keyframes gp-modal-slide-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal Header */
.gp-modal-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.gp-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    flex: 1;
}

.gp-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.gp-modal-close:hover {
    background: #e9ecef;
    color: #333;
}

/* Modal Content */
.gp-modal-content {
    padding: 30px;
}

.gp-installment-summary {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.gp-installment-badge {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    min-width: 120px;
    flex-shrink: 0;
}

.gp-plan-months {
    display: block;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 5px;
}

.gp-plan-label {
    display: block;
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gp-installment-details {
    flex: 1;
}

.gp-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.gp-detail-row:last-child {
    border-bottom: none;
}

.gp-detail-row.gp-highlight {
    background: rgba(0, 124, 186, 0.1);
    margin: 15px -15px 0;
    padding: 15px;
    border-radius: 6px;
    font-weight: 600;
}

.gp-label {
    color: #666;
    font-weight: 500;
    font-size: 15px;
}

.gp-value {
    color: #333;
    font-weight: 600;
    font-size: 15px;
}

.gp-installment-description {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin-top: 25px;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.gp-installment-terms {
    margin-top: 20px;
    text-align: center;
}

.gp-terms-link {
    display: inline-block;
    color: #007cba !important;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid #007cba;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.gp-terms-link:hover {
    background-color: #007cba;
    color: white !important;
    text-decoration: none;
}

/* Modal Footer */
.gp-modal-footer {
    background: #f8f9fa;
    padding: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gp-modal-close-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.gp-modal-close-btn:hover {
    background: #005a87;
}

.gp-powered-by {
    color: #999;
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gp-modal-container {
        margin: 10px;
    }

    .gp-modal-header,
    .gp-modal-content,
    .gp-modal-footer {
        padding: 20px;
    }

    .gp-installment-summary {
        flex-direction: column;
        gap: 20px;
    }

    .gp-installment-badge {
        align-self: center;
    }

    .gp-detail-row {
        flex-direction: column;
        gap: 5px;
    }

    .gp-modal-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}