/* Styles for the Size and Measurements module */
.msm-edit-size-wrap,
.msm-edit-size-wrap * {
    font-family:'Segoe UI Light' !important;
	font-weight:200 !important;
}

.msm-edit-size-wrap {
    margin: 12px 0;
}

.msm-size-wrapper {
    margin: 20px 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background-color: transparent;
}

.msm-size-header{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.msm-size-top{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:12px;
}

.msm-size-title{
    font-weight:700;
    letter-spacing:0.02em;
    font-size:14px;
    color:#666;
}

.msm-size-select{position:relative;}
.msm-size-select-trigger{display:flex;align-items:center;gap:0;background:#fff;border:none;padding:0;cursor:pointer;}
.msm-size-box{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:30px;border:1px solid #d9d9d9;font-size:13px;color:#111;padding:0 10px;}
.msm-size-caret{display:inline-flex;align-items:center;justify-content:center;width:26px;height:30px;color:#666;border:1px solid transparent;}
.msm-size-select-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:9999;background:#fff;border:1px solid #d9d9d9;min-width:220px;max-height:240px;overflow:auto;box-shadow:0 6px 16px rgba(0,0,0,0.12);}
.msm-size-select-option{width:100%;display:flex;align-items:center;justify-content:flex-start;gap:0;padding:6px 8px;background:#fff;border:none;cursor:pointer;}
.msm-size-select-option:hover{background:#111;color:#fff;}
.msm-size-select-option:hover .msm-size-box{color:#fff;border-color:#fff;}
.msm-size-select-option .msm-size-box{height:28px;}
.msm-size-select-empty{padding:10px;font-size:13px;color:#666;}

.msm-size-type{display:flex;align-items:center;gap:16px;}
.msm-size-type label{display:inline-flex;align-items:center;gap:8px;font-size:14px;cursor:pointer;color:#222;}

.msm-size-note{margin-top:8px;font-size:12px;}
.msm-size-chart-link{background:none;border:none;padding:0;margin:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px;color:#777;font-size:12px;}
.msm-how-measure{background:none;border:none;padding:0;margin:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px;color:#777;font-size:12px;}

#msm-standard-panel, #msm-custom-panel {
    margin-top: 14px;
}

.msm-size-empty {
    font-size: 14px;
    padding: 8px 0;
}

.msm-standard-readonly{margin-top:10px;display:grid;grid-template-columns:1fr;gap:18px;}
@media (min-width: 768px){.msm-standard-readonly{grid-template-columns:1fr 1fr;}}
.msm-standard-col{display:flex;flex-direction:column;gap:14px;}
.msm-standard-row{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.msm-standard-label{font-size:14px;color:#666;}
.msm-standard-value{display:flex;align-items:flex-end;gap:2px;min-width:90px;justify-content:flex-end;}
.msm-standard-num{display:inline-block;min-width:40px;text-align:right;font-size:14px;color:#666;border-bottom:1px solid #d9d9d9;padding-bottom:2px;}
.msm-standard-unit{font-size:14px;color:#777;}

/* Custom size: 2-column rows like screenshot */
.msm-custom-two-col{
    margin-top:12px;
    display:grid;
    grid-template-columns:1fr;
    gap:22px;
}

@media (min-width: 768px) {
    .msm-custom-two-col{grid-template-columns:1fr 1fr;}
}

.msm-custom-col{display:flex;flex-direction:column;gap:14px;}
.msm-custom-row{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.msm-custom-row-label{font-size:12px;font-weight:400;white-space:nowrap;color:inherit;}
.msm-custom-row-label{display:inline-flex;align-items:center;gap:8px;}
.msm-hint-button.msm-hint-button--row{width:16px;height:16px;line-height:14px;font-size:11px;border-radius:50%;border:1px solid #d9d9d9;color:#666;background:#fff;}
.msm-custom-row-control{display:flex;align-items:center;gap:6px;min-width:120px;}
.msm-custom-row-control select{
    width:86px;
    border:none;
    border-bottom:1px solid #d9d9d9;
    border-radius:0;
    padding:2px 2px 3px 2px;
    background:transparent;
    font-size:12px;
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
}
.msm-custom-unit{font-size:12px;color:#777;}

.msm-custom-more{margin-top:18px;display:flex;flex-direction:column;gap:14px;}

/* Custom size: 2 fields per row (grid) */
.msm-custom-grid{
    margin-top:12px;
    display:grid;
    grid-template-columns:1fr;
    gap:14px 22px;
}

@media (min-width: 768px) {
    .msm-custom-grid{grid-template-columns:1fr 1fr;}
}

.msm-custom-grid .msm-custom-row{
    margin:0;
}

.msm-hint-button {
    width: 16px;
    height: 16px;
    line-height: 14px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    padding: 0;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    flex: 0 0 auto;
    text-align: center;
}

.msm-hint-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.msm-hint-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.msm-hint-dialog {
    position: relative;
    background: #fff;
    border-radius: 6px;
    max-width: 980px;
    width: calc(100% - 24px);
    margin: 10vh auto 0;
    padding: 24px;
}

.msm-hint-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 22px;
    line-height: 30px;
    cursor: pointer;
}

.msm-hint-header {
    padding-right: 44px;
    margin-bottom: 18px;
}

.msm-hint-title {
    font-size: 24px;
    font-weight: 700;
}

.msm-hint-body {
    font-size: 14px;
    line-height: 1.5;
}

.msm-hint-sections{display:flex;flex-direction:column;gap:16px;}
.msm-hint-section-title{font-size:14px;font-weight:700;margin-bottom:6px;}
.msm-hint-section-body{font-size:13px;line-height:1.55;}

.msm-hint-body img {
    max-width: 100%;
    height: auto;
}

#msm-custom-panel select{background:transparent;}

.msm-height-panel {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e6e6e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.msm-height-label {
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 13px;
}

.msm-height-label small {
    font-weight: 400;
    letter-spacing: 0;
    font-size: 11px;
}

.msm-height-controls {
    display: flex;
    gap: 10px;
}

.msm-height-controls select {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    min-width: 120px;
    font-size: 12px;
}