.wms-product-trigger-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 10px 0 14px;
}

.wms-open-wizard-btn,
button.wms-open-wizard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 36px;
    min-height: 36px;
    margin: 0 !important;
    padding: 0 16px;
    border-radius: 999px;
    border: 1.5px solid #1e293b;
    background: #ffffff;
    color: #0f172a;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    line-height: 1;
    box-sizing: border-box;
    text-transform: none;
    letter-spacing: 0;
}

.wms-open-wizard-btn:hover,
button.wms-open-wizard-btn:hover {
    background: #0f172a;
    color: #ffffff;
}

.wms-saved-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 36px;
    margin: 0;
    padding: 0 14px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 13px;
    line-height: 1;
    border: 1px solid #cbd5e1;
    box-sizing: border-box;
}

/* Modal */
.wms-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.wms-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(3px);
}

.wms-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    padding: 24px 24px 20px;
    z-index: 1;
    max-height: 92vh;
    overflow-y: auto;
}

.wms-modal-close {
    position: absolute;
    top: 14px;
    left: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.wms-modal-close:hover {
    background: #e2e8f0;
}

.wms-modal-header h3 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
}

.wms-steps-indicator {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}

.wms-step-dot {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
}

.wms-step-dot.active {
    background: #0f172a;
    color: #ffffff;
}

.wms-step-dot.done {
    background: #dcfce7;
    color: #166534;
}

.wms-step-panel {
    display: none;
}

.wms-step-panel.active {
    display: block;
}

.wms-question-label {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 16px;
}

/* Height Meter Control */
.wms-meter-wrap {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 16px;
}

.wms-height-display {
    text-align: center;
    margin-bottom: 14px;
}

#wms-height-val {
    font-size: 42px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.wms-height-unit {
    font-size: 16px;
    color: #64748b;
    margin-right: 4px;
}

.wms-meter-ruler {
    position: relative;
    padding-top: 28px;
    margin-bottom: 14px;
}

.wms-meter-ticks {
    position: absolute;
    top: 0;
    left: 6px;
    right: 6px;
    height: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
    direction: ltr;
}

.wms-tick {
    position: relative;
    width: 1px;
    height: 8px;
    background: #cbd5e1;
}

.wms-tick.major {
    height: 16px;
    width: 2px;
    background: #475569;
}

.wms-tick-label {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #64748b;
    white-space: nowrap;
}

#wms-height-range {
    width: 100%;
    direction: ltr;
    accent-color: #0f172a;
    cursor: pointer;
    height: 8px;
}

.wms-meter-presets {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.wms-preset-btn {
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    cursor: pointer;
}

.wms-preset-btn:hover,
.wms-preset-btn.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

/* Sketch Cards */
.wms-sketch-grid {
    display: grid;
    gap: 12px;
}

.wms-sketch-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.wms-sketch-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.wms-sketch-grid-6 {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 520px) {
    .wms-sketch-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.wms-subnote {
    text-align: center;
    font-size: 12px;
    color: #64748b;
    margin: 10px 0 0;
}

.wms-step-dot.skipped {
    opacity: 0.35;
    text-decoration: line-through;
}

.wms-sketch-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.16s ease;
}

.wms-sketch-card img {
    width: 100%;
    max-width: 110px;
    height: 125px;
    object-fit: contain;
    display: block;
}

.wms-sketch-card span {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.wms-sketch-card:hover {
    border-color: #94a3b8;
    transform: translateY(-2px);
}

.wms-sketch-card.selected {
    border-color: #0f172a;
    background: #f8fafc;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.12);
}

/* Result Box */
.wms-result-box {
    text-align: center;
    padding: 20px 14px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.wms-result-subtitle {
    font-size: 14px;
    color: #475569;
    margin-bottom: 6px;
}

.wms-result-size {
    font-size: 52px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 6px;
}

.wms-result-item {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 10px;
}

.wms-result-note {
    font-size: 13px;
    color: #16a34a;
}

/* Footer */
.wms-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.wms-nav-btn {
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.wms-prev-btn {
    background: #f1f5f9;
    color: #334155;
}

.wms-next-btn {
    background: #0f172a;
    color: #ffffff;
}

/* My Account */
.wms-account-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    margin: 16px 0;
    background: #f8fafc;
}

.wms-account-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.wms-account-card-header h3 {
    margin: 0;
    font-size: 17px;
}

.wms-my-account-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.wms-profile-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.wms-profile-pills span {
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13.5px;
}
