﻿.ip-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.ip-popup {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.3s ease-out;
    border: 1px solid #e6ebf1;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ip-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid #e6ebf1;
    position: relative;
    background: #fafbfc;
}

.ip-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #8898aa;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

    .ip-close:hover {
        background: #f6f9fc;
        color: #32325d;
    }

.ip-progress {
    display: flex;
    margin-bottom: 24px;
}

.ip-progress-step {
    flex: 1;
    height: 4px;
    background: #e6ebf1;
    margin-right: 8px;
    border-radius: 2px;
    transition: all 0.3s;
}

    .ip-progress-step:last-child {
        margin-right: 0;
    }

    .ip-progress-step.active {
        background: #635bff;
    }

.ip-title {
    font-size: 20px;
    font-weight: 500;
    color: #32325d;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.ip-subtitle {
    color: #6b7c93;
    font-size: 15px;
    margin-bottom: 0;
    font-weight: 400;
}

.ip-content {
    padding: 32px 32px 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.ip-step {
    display: none;
}

    .ip-step.active {
        display: block;
    }

.ip-item-card {
    background: #f6f9fc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #e6ebf1;
}

.ip-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.ip-item-thumbnail {
    width: 150px;
    height: 60px;
    
    border-radius: 8px;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.ip-item-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #32325d;
    margin-bottom: 4px;
}

.ip-item-info p {
    color: #8898aa;
    font-size: 14px;
}

.ip-quantity-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ip-quantity-label {
    font-weight: 500;
    color: #32325d;
}

.ip-quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid #e6ebf1;
    border-radius: 6px;
    overflow: hidden;
}

.ip-qty-btn {
    background: #f6f9fc;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: #635bff;
    font-weight: 600;
    transition: all 0.2s;
}

    .ip-qty-btn:hover {
        background: #e6ebf1;
    }

.ip-qty-value {
    padding: 8px 16px;
    border: none;
    text-align: center;
    width: 60px;
    font-weight: 500;
}

.ip-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.ip-price-label {
    font-weight: 600;
    color: #32325d;
}

.ip-price-value {
    font-size: 18px;
    font-weight: 600;
    color: #32325d;
}

.ip-form-group {
    margin-bottom: 24px;
}

.ip-form-row {
    display: flex;
    gap: 16px;
}

    .ip-form-row .ip-form-group {
        flex: 1;
    }

.ip-label {
    display: block;
    font-weight: 500;
    color: #6b7c93;
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.ip-required {
    color: #e25950;
}

.ip-input, .ip-select {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #cfd7df;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.15s ease;
    background: white;
    color: #32325d;
    font-weight: 400;
}

    .ip-input:focus, .ip-select:focus {
        outline: none;
        border-color: #635bff;
        box-shadow: 0 1px 3px 0 rgba(50, 50, 93, 0.15), 0 1px 0 0 rgba(0, 0, 0, 0.02);
    }

    .ip-input::placeholder {
        color: #aab7c4;
    }

.ip-validation-message {
    color: #e25950;
    font-size: 13px;
    margin-top: 6px;
    display: none;
    font-weight: 500;
}

    .ip-validation-message.show {
        display: block;
    }

.ip-form-group.error .ip-input {
    border-color: #e25950;
    box-shadow: 0 0 0 3px rgba(226, 89, 80, 0.1);
}

.ip-form-group.error .ip-label {
    color: #e25950;
}

.ip-dropdown-container {
    position: relative;
}

.ip-dropdown-input {
    padding-right: 40px;
}

.ip-dropdown-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #aab7c4;
    pointer-events: none;
    font-size: 12px;
    transition: transform 0.2s;
}

.ip-dropdown-container.open .ip-dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.ip-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #cfd7df;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.ip-dropdown-container.open .ip-dropdown-list {
    display: block;
}

.ip-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    color: #32325d;
    font-size: 16px;
    border-bottom: 1px solid #f6f9fc;
    transition: background-color 0.15s;
}

    .ip-dropdown-item:hover {
        background-color: #f6f9fc;
    }

    .ip-dropdown-item.highlighted {
        background-color: #635bff;
        color: white;
    }

    .ip-dropdown-item:last-child {
        border-bottom: none;
    }

.ip-dropdown-no-results {
    padding: 12px 16px;
    color: #aab7c4;
    font-style: italic;
    text-align: center;
}

.ip-payment-demo {
    background: #fff4e6;
    border: 1px solid #ffd700;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.ip-payment-demo-text {
    color: #b7791f;
    font-weight: 500;
    font-size: 14px;
}

.ip-card-input {
    background: white;
    border: 1px solid #cfd7df;
    border-radius: 4px;
    padding: 13px 16px;
    margin-bottom: 16px;
    color: #aab7c4;
    text-align: left;
    font-style: normal;
    font-size: 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.ip-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.ip-btn {
    flex: 1;
    padding: 13px 24px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.15s ease;
    letter-spacing: 0.025em;
}

.ip-btn-primary {
    background: #635bff;
    color: white;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

    .ip-btn-primary:hover {
        background: #5469d4;
        transform: translateY(-1px);
        box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    }

    .ip-btn-primary:disabled {
        background: #e6ebf1;
        color: #8898aa;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.ip-btn-secondary {
    background: white;
    color: #6b7c93;
    border: 1px solid #d1d5db;
}

    .ip-btn-secondary:hover {
        background: #f8f9fa;
        border-color: #6b7c93;
    }

.ip-success {
    text-align: center;
    padding: 40px 20px;
}

.ip-success-icon {
    width: 80px;
    height: 80px;
    background: #00d924;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
}

.ip-success-title {
    font-size: 24px;
    font-weight: 600;
    color: #32325d;
    margin-bottom: 8px;
}

.ip-success-message {
    color: #8898aa;
    margin-bottom: 24px;
}

.ip-failed {
    text-align: center;
    padding: 40px 20px;
}

.ip-failed-icon {
    width: 80px;
    height: 80px;
    background: #e25950;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    font-weight: bold;
}

.ip-failed-title {
    font-size: 24px;
    font-weight: 600;
    color: #e25950;
    margin-bottom: 8px;
}

.ip-failed-message {
    color: #8898aa;
    margin-bottom: 20px;
    font-size: 16px;
}

.ip-failed-details {
    background: #fef7f7;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
}

    .ip-failed-details p {
        margin-bottom: 8px;
        color: #7f1d1d;
        font-size: 14px;
    }

        .ip-failed-details p:last-child {
            margin-bottom: 0;
        }

    .ip-failed-details strong {
        font-weight: 600;
    }

.ip-failed-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

    .ip-failed-actions .ip-btn {
        flex: 0 1 auto;
        min-width: 140px;
    }

.demo-trigger {
    background: #635bff;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

    .demo-trigger:hover {
        background: #5a52e8;
        transform: translateY(-2px);
    }

@media (max-width: 640px) {
    .ip-popup {
        margin: 20px;
        max-width: none;
    }

    .ip-form-row {
        flex-direction: column;
        gap: 0;
    }

    .ip-buttons {
        flex-direction: column;
    }
    .ip-popup{
        max-height:100%;
    }
}
