.success-overlay,
.reg-opt-overlay,
.account-overlay,
.ordersuccess-overlay,
.overlay {
    position: fixed;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(.5px);
    -webkit-backdrop-filter: blur(.5px);
    z-index: 100;
    overflow: hidden;
    scroll-behavior: none;
    display: none;
}

/* Added to Cart Success Overlay */
.success-notification {
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    width: 450px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.06);
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6B7280;
    transition: color 0.2s;
    font-size: 20px;
}

.close-btn:hover {
    color: #1F2937;
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.success-icon {
    color: #10B981;
    font-size: 28px;
}

.notification-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1F2937;
}

.added-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid #F3F4F6;
    border-bottom: 1px solid #F3F4F6;
    margin-bottom: 20px;
}

.item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: #F9FAFB;
}

.item-info {
    flex: 1;
}

.item-title {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
}

.item-variant {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #6B7280;
}

.item-price {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    font-family: 'Syne', sans-serif !important;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.addded-sucess-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: .75rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.addded-sucess-btn-secondary {
    background: #F3F4F6;
    color: #1F2937;
    border: 1px solid #E5E7EB;
}

.addded-sucess-btn-secondary:hover {
    background: #E5E7EB;
}

.addded-sucess-btn-primary {
    background: #1F2937;
    color: white;
    border: 1px solid #1F2937;
}

.addded-sucess-btn-primary:hover {
    background: #111827;
    border-color: #111827;
}

.addded-sucess-btn i {
    font-size: 18px;
}

/* Size Guide Overlay Styles */
.size-guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.size-guide-overlay.active {
    opacity: 1;
    visibility: visible;
}

.size-guide-container {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.size-guide-overlay.active .size-guide-container {
    transform: translateY(0);
}

.size-guide-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.size-guide-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.close-guide-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: -0.5rem;
}

.size-guide-content {
    padding: 1.5rem;
    flex: 1;
    overflow-y: scroll;
    scrollbar-width: thin;
}

.guide-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.guide-tab {
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    font-size: .9rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.guide-tab.active {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

.size-tables {
    margin-top: 1rem;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    display: none;
}

.size-table.active {
    display: table;
}

.size-table th {
    background: #f3f4f6;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: .857rem;
}

.size-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: .8rem;
}

.size-table tr:last-child td {
    border-bottom: none;
}

.size-table tr:hover td {
    background: #f9fafb;
}

.highlight-cell {
    background: #f5f3ff !important;
    color: #4f46e5 !important;
    font-weight: 500;
}

.measurement-help {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
}

.measurement-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.measurement-steps {
    display: flex;
    gap: 1.5rem;
}

.measurement-step {
    flex: 1;
    font-size: .75rem;
}

.step-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #4f46e5;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: 600;
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .size-guide-container {
        width: 95%;
    }

    .measurement-steps {
        flex-direction: column;
        gap: 1rem;
    }

    .size-guide-header {
        padding: 1rem;
    }

    .size-guide-content {
        padding: 1rem;
    }
}