.sd-cus-profile-init-btn {
    cursor: pointer;
}

.sd-cus-profile-init-btn:hover .sd-name-text {
    text-decoration: underline;
}

.sd-cus-profile-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    background: var(--sd-neutral-100);
    border-radius: 20px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    padding: 32px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    overflow: auto;
}

.sd-cus-profile-visible {
    opacity: 1;
    transform: translateY(0);
    top: 0;
    z-index: 1000;
}

.sd-cus-profile-header {
   display: flex;
   justify-content: flex-start;
   align-items: center;
   padding-bottom: 24px;
   color: var(--sd-neutral-800);
   font-size: 24px;
   line-height: 32px;
   font-weight: 700;
    gap: 12px;
}

.sd-cus-profile-close {
    margin-left: -20px !important;
    margin-top: 0 !important;
    /* cursor: pointer;
    height: 28px;
    width: 28px;
    background: var(--sd-neutral-300);
    display: flex;
    align-items: center;
    justify-content: center; */
}

.sd-cus-profile-body {
    display: flex;
    flex: 1;
    gap: 80px;
    margin-top: 0;
    transition: filter 0.3s ease-in-out;
}

.sd-cus-profile-body-loading {
    filter: blur(3px);
}

.sd-cus-profile-body-left {
    width: 350px;
    min-width: 360px;
    max-width: 400px;
    border-radius: 12px;
    border: 1px solid var(--sd-neutral-300);
    padding:24px 20px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    height: calc(100% - 270px);
    min-height: 450px;
}

/* Left card: avatar, name, etc. */
.sd-cus-profile-intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 14px;
    color: var(--sd-neutral-700);
}

.sd-cus-profile-intro-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--sd-neutral-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 500;
    color: var(--sd-neutral-700);
}

.sd-cus-profile-intro-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--sd-neutral-800);
    margin-bottom: 8px;
}

.sd-cus-profile-intro-last-order {
    font-size: 14px;
    color: var(--sd-neutral-700);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sd-cus-profile-intro-desc {
    font-weight: 300;
}

/* Keywords/tags */
.sd-cus-profile-key-words-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.sd-cus-profile-key-word {
    background: var(--sd-pill-bg);
    color: var(--sd-pill-text);
    font-size: 13px;
    font-weight: 500;
    border-radius: 10px;
    padding: 2px 8px;
}

/* Contact info */
.sd-cus-profile-address-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    color: var(--sd-neutral-700);
}

.sd-cus-profile-address {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sd-cus-profile-address-icon {
    display: flex;
}

/* Subscriptions and reviews */
.sd-cus-profile-tracking-state {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sd-cus-profile-tracking-state-single {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #404040;
}
.sd-cus-profile-tracking-state-icon svg {
    width: 20px;
    height: 20px;
}
.sd-cus-profile-tracking-state-text {
    font-size: 14px;
    color: var(--sd-neutral-700);
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    .sd-cus-profile-body {
        flex-direction: column;
    }
    .sd-cus-profile-body-left {
        width: 100%;
        max-width: 100%;
        margin-bottom: 32px;
    }
}

/* Right card: quick stats, reviews, ai insights, preferences, sms marketing */
.sd-cus-profile-body-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: calc(100% - 430px);
}

/* Tabs */
.sd-cus-profile-tabs {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.sd-cus-profile-tab-list {
    display: flex;
    position: relative;
    gap: 32px;
}

.sd-cus-profile-tab {
    font-size: 14px;
    color: var(--sd-neutral-700);
    font-weight: 500;
    line-height: 24px;
    cursor: pointer;
    padding-bottom: 8px;
    transition: color 0.2s;
}

.sd-cus-profile-tab.active {
    color: var(--sd-dark-green);
}

.sd-cus-profile-tab-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 70px;
    background: var(--sd-dark-green);
    transition: left 0.3s cubic-bezier(.4,0,.2,1), width 0.3s cubic-bezier(.4,0,.2,1);
    z-index: 1;
}

/* Stat cards */
.sd-cus-profile-stat {
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: 100%;
    overflow-x: auto;
    min-height: calc(100% - 40px);
}

.sd-cus-profile-stat-card {
    display: flex;
    gap: 40px;
    margin-bottom: 0;
    justify-content: flex-start;
    border: 1px solid var(--sd-neutral-300);
    border-radius: 12px;
    padding: 24px;
    width: max-content;
}

.sd-cus-profile-stat-card-single {
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sd-cus-profile-stat-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--sd-neutral-800);
}

.sd-cus-profile-stat-card-val {
    font-size: 24px;
    font-weight: 700;
    color: var(--sd-neutral-800);
    display: flex;
    align-items: center;
    gap: 4px;
}

.sd-cus-profile-stat-card-rating-icon img {
    width: 18px;
    height: 18px;
    margin-top: -7px;
}

.sd-cus-profile-stat-card-sub {
    font-size: 12px;
    color: var(--sd-neutral-600);
    font-weight: 400;
}

/* Stat details */
.sd-cus-profile-stat-details-item-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--sd-neutral-800);
}

.sd-cus-profile-stat-details-item-desc {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sd-neutral-700);
    font-size: 14px;
}

.sd-cus-profile-stat-details-dot {
    font-size: 14px;
    color: var(--sd-neutral-800);
}

/* Preferences */
.sd-cus-profile-preferences-wrapper {
    display: none;
    display: flex;
    flex-direction: column;
    width: 800px;
    max-width: 100%;
}

.sd-cus-profile-pref-vip {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    max-width: 800px;
    border: 1px solid var(--sd-neutral-300);
    border-radius: 12px;
    padding: 16px 20px;
}

.sd-cus-profile-pref-vip-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sd-cus-profile-pref-vip-icon {
    width: 40px;
    height: 40px;
    background: #FDF0B9;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sd-cus-profile-pref-vip-icon svg {
    width: 24px;
    height: 24px;
}

.sd-cus-profile-pref-vip-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--sd-neutral-800);
}

.sd-cus-profile-pref-vip-desc {
    font-size: 14px;
    font-weight: 350;
    color: var(--sd-neutral-700);
}

.sd-cus-profile-pref-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--sd-neutral-800);
    line-height: 24px;
}

.sd-cus-profile-pref-section-desc {
    font-size: 16px;
    font-weight: 350;
    color: var(--sd-neutral-700);
    line-height: 24px;
}

.sd-cus-profile-pref-textarea {
    padding: 12px 14px;
    border: 1px solid var(--sd-neutral-300);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 350;
    color: var(--sd-neutral-700);
    line-height: 24px;
    resize: none;
    width: 100%;
    outline: none;
    margin-top: 16px;
}

.sd-cus-profile-pref-section-delivery-instructions {
    margin-top: 48px;
}

.sd-cus-profile-pref-section-notes {
    margin-top: 64px;
}

.sd-cus-profile-pref-textarea-wrapper {
    position: relative;
}

.sd-cus-profile-pref-update-btn-wrapper {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: none;
}

.sd-cus-profile-pref-update-btn {
    background-color: transparent;
    border: none;
    color: var(--sd-dark-green);
    cursor: pointer;
    font-weight: 600;
    padding: 4px 8px;
}

.sd-cus-profile-stat-details-divider, .sd-cus-profile-divider {
    border-top: 1px solid var(--sd-neutral-300) !important;
}

.sd-cus-profile-order-span:hover {
    text-decoration: underline;
}

.sd-cus-profile-send-offer-btn-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 40px;
}
