/* Eurece Marketplace Modal Styles */

.eurece-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eurece-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.eurece-modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: eurece-modal-appear 0.3s ease;
}

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

.eurece-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    color: #666;
}

.eurece-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.eurece-modal-header {
    padding: 30px 30px 25px;
}

.eurece-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 25px 0;
}

.eurece-product-preview {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
}

.eurece-product-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: white;
    padding: 5px;
}

.eurece-product-info {
    flex: 1;
}

.eurece-product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #2c3e50;
    line-height: 1.3;
}

.eurece-product-volume {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.eurece-product-price {
    font-size: 22px;
    font-weight: 700;
    color: #4A5F7A;
}

.eurece-product-price del {
    font-size: 16px;
    color: #999;
    margin-right: 8px;
    font-weight: 400;
}

.eurece-modal-body {
    padding: 0 30px 20px;
}

.eurece-marketplace-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eurece-marketplace-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.eurece-marketplace-link:hover {
    border-color: #4A5F7A;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.eurece-marketplace-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
}

.eurece-marketplace-icon.shopee {
    background: #FFF5F0;
    color: #EE4D2D;
}

.eurece-marketplace-icon.lazada {
    background: #F0F2FF;
    color: #0F156D;
}

.eurece-marketplace-icon.tiktok {
    background: #F0F0F0;
    color: #000000;
}

.eurece-marketplace-icon.line {
    background: #F0FFF5;
    color: #06C755;
}

.eurece-marketplace-name {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.eurece-marketplace-arrow {
    width: 20px;
    height: 20px;
    color: #999;
    transition: transform 0.3s;
}

.eurece-marketplace-link:hover .eurece-marketplace-arrow {
    transform: translateX(5px);
}

.eurece-modal-footer {
    padding: 20px 30px 30px;
    text-align: center;
}

.eurece-btn-cancel {
    padding: 12px 40px;
    background: #f5f5f5;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.eurece-btn-cancel:hover {
    background: #e0e0e0;
}

/* Button style */
.eurece-open-marketplace-modal {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    transition: all 0.3s !important;
}

.eurece-open-marketplace-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .eurece-modal-content {
        max-width: 95%;
        border-radius: 20px;
    }
    
    .eurece-modal-header,
    .eurece-modal-body,
    .eurece-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .eurece-product-preview {
        flex-direction: column;
        text-align: center;
    }
    
    .eurece-product-image {
        margin: 0 auto;
    }
}
