.srs-section,
.srs-editor-shell {
    --srs-accent: #b2456e;
    --srs-accent-dark: #7f2f50;
    --srs-plum: #6f345f;
    --srs-gold: #9a6b22;
    --srs-sage: #5f7d6a;
    --srs-ink: #241a20;
    --srs-soft: #fff2f6;
    --srs-surface: #fffafb;
    margin: 34px 0;
    font-family: inherit;
    box-sizing: border-box;
    max-width: 100%;
}
.srs-section *,
.srs-editor-shell * {
    box-sizing: border-box;
}
.srs-editor-shell {
    padding: 18px;
    border: 1px dashed rgba(178, 69, 110, .50);
    border-radius: 14px;
    background: #fffafb;
    position: relative;
    cursor: default;
    overflow: hidden;
}
.srs-editor-shell.is-selected,
.wp-block-srs-product-cards.is-selected,
.wp-block-srs-rating-graphs.is-selected,
.wp-block-srs-comparison-table.is-selected,
.wp-block-srs-pros-cons.is-selected,
.wp-block-srs-product-specs.is-selected,
.wp-block-srs-single-rating.is-selected,
.wp-block-srs-best-for-labels.is-selected {
    outline: 2px solid #b2456e;
    outline-offset: 2px;
}
.srs-editor-help {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 12px;
    margin-bottom: 16px;
    border-radius: 8px;
    background: #fff2f6;
    color: #6f2447;
    font-size: 13px;
}
.srs-editor-help strong { font-weight: 800; }
.srs-editor-help button.components-button { height: 30px; margin-left: auto; }
.srs-control-help,
.srs-sidebar-label {
    margin: 12px 0 8px;
    font-size: 12px;
    color: #50575e;
}
.srs-sidebar-label { font-weight: 700; color: #1e1e1e; }
.srs-sidebar-image {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 6px 0 8px;
    background: #fff;
}
.srs-sidebar-placeholder {
    min-height: 76px;
    border: 1px dashed #bbb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #757575;
    background: #fff9fb;
    margin: 6px 0 8px;
}
.srs-inspector-item,
.srs-link-box,
.srs-metric-control-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0 14px;
    background: #fff;
}
.srs-inspector-heading {
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    font-weight: 800;
}
.srs-remove-product-button,
.srs-separator-button { margin-top: 12px; }
.srs-section-title {
    margin: 0 0 22px;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Editorial product recommendation cards */
.srs-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 20px;
    max-width: 100%;
}
.srs-product-card {
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 20px;
    padding: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fffafb 100%);
    box-shadow: 0 12px 32px rgba(75, 39, 57, .10);
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    position: relative;
}
.srs-award {
    color: #8a6d7a;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .10em;
    line-height: 1.25;
    text-align: center;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.srs-best-badge {
    display: inline-flex;
    align-self: center;
    width: fit-content;
    max-width: 100%;
    border-radius: 999px;
    padding: 7px 12px;
    margin: 0 auto 16px;
    font-size: 11px;
    line-height: 1.15;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #fff;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.srs-badge-rose { background: #b2456e; }
.srs-badge-plum { background: #6f345f; }
.srs-badge-gold { background: #9a6b22; }
.srs-badge-sage { background: #5f7d6a; }
.srs-badge-black { background: #241a20; }
.srs-badge-nude { background: #9a6f5a; }
.srs-card-body {
    display: grid;
    grid-template-columns: minmax(170px, 36%) minmax(0, 1fr);
    gap: 26px;
    align-items: center;
    min-width: 0;
}
.srs-card-image-wrap {
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
}
.srs-card-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    object-position: center center;
    display: block;
}
.srs-card-image-placeholder {
    width: 100%;
    min-height: 90px;
    border: 1px dashed #ccc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a6d7a;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .10em;
    background: #fff7fa;
}
.srs-card-content {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}
.srs-card-title {
    margin: 0;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 800;
    color: #241a20;
    text-decoration: none;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
}
.srs-card-rating {
    margin-top: 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #222;
    overflow-wrap: anywhere;
}
.srs-card-rating strong { font-weight: 900; margin-right: 2px; }
.srs-buy-details { position: relative; display: inline-block; margin-top: 24px; min-width: 0; }
/* Shop options button */
.srs-buy-details summary,
.srs-preview-buy {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 160px;
    max-width: 100%;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(36, 26, 32, .12);
    background: #6f345f;
    color: #fff;
    box-shadow: 0 9px 20px rgba(36, 26, 32, .18);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.srs-buy-details summary::-webkit-details-marker { display: none; }
.srs-buy-details summary:after { content: "⌄"; margin-left: 2px; font-size: 12px; color: currentColor; }
.srs-buy-details[open] summary,
.srs-buy-details summary:hover,
.srs-buy-details summary:focus,
.srs-preview-buy:hover,
.srs-preview-buy:focus {
    background: #b2456e;
    color: #fff;
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 11px 24px rgba(178, 69, 110, .22);
}
.srs-buy-details[open] { z-index: 100; }
/* Dropdown opens as an overlay and closes on outside click or Escape. */
.srs-buy-list {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 999;
    width: max-content;
    min-width: 230px;
    max-width: min(340px, calc(100vw - 40px));
    margin-top: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid rgba(178, 69, 110, .14);
    border-radius: 16px;
    overflow: hidden;
    background: #fffafb;
    box-shadow: 0 18px 38px rgba(36,26,32,.18);
}
.srs-buy-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 11px 14px;
    border: 1px solid rgba(178, 69, 110, .18);
    border-radius: 12px;
    background: #fff0f5;
    color: #7f2f50;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(178, 69, 110, .08);
    overflow-wrap: anywhere;
    word-break: break-word;
    transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.srs-buy-list a:hover,
.srs-buy-list a:focus {
    background: #b2456e;
    color: #fff;
    border-color: #b2456e;
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(178, 69, 110, .18);
}
.srs-buy-empty { margin-top: 24px; color: #999; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.srs-preview-buy small { text-transform: none; letter-spacing: normal; font-weight: 700; color: rgba(255,255,255,.85); }

/* Rating graphs */
.srs-rating-product-name {
    margin: -8px 0 18px;
    font-weight: 900;
    font-size: clamp(18px, 2vw, 24px);
    overflow-wrap: anywhere;
}
.srs-rating-circle-wrap { display: flex; justify-content: center; margin: 20px 0 34px; }
.srs-rating-circle {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--srs-score-color) var(--srs-score-percent), #e9ecef 0);
}
.srs-rating-circle-inner {
    width: 98px;
    height: 98px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}
.srs-rating-circle-inner strong { font-size: 34px; color: var(--srs-score-color); font-weight: 900; }
.srs-rating-circle-inner span { font-size: 11px; color: #333; }
.srs-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 36px;
}
.srs-metric-row { border-bottom: 1px solid #dcdcdc; padding-bottom: 12px; min-width: 0; }
.srs-metric-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.srs-metric-head span { overflow-wrap: anywhere; word-break: break-word; }
.srs-metric-head strong { font-weight: 900; white-space: nowrap; }
.srs-dot-row { display: flex; gap: 7px; flex-wrap: wrap; }
.srs-dot-row span {
    width: 12px;
    height: 12px;
    border: 1.5px solid #111;
    border-radius: 50%;
    display: inline-block;
    background: #fff;
}
.srs-dot-row span.is-filled { background: var(--srs-score-color); border-color: var(--srs-score-color); }
.srs-metric-bar { width: 100%; height: 10px; border-radius: 999px; background: #e9ecef; overflow: hidden; }
.srs-metric-bar span { display: block; height: 100%; width: var(--srs-score-percent); background: var(--srs-score-color); border-radius: inherit; }

/* Comparison table */
.srs-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    background: #fff;
}
.srs-comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
    font-size: 15px;
}
.srs-comparison-table th,
.srs-comparison-table td {
    border-bottom: 1px solid rgba(0,0,0,.09);
    border-right: 1px solid rgba(0,0,0,.06);
    padding: 13px 12px;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.srs-comparison-table th {
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: #fff9fb;
}
.srs-comparison-table td:first-child,
.srs-comparison-table td:first-child a { font-weight: 900; color: #b2456e; }
.srs-comparison-table tr:last-child td { border-bottom: 0; }
.srs-comparison-table th:last-child,
.srs-comparison-table td:last-child { border-right: 0; }

/* Pros and cons */
.srs-pros-cons-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.srs-pros-box,
.srs-cons-box {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    padding: 20px;
    background: #fff;
    min-width: 0;
}
.srs-pros-box h3,
.srs-cons-box h3 { margin: 0 0 12px; font-size: 20px; font-weight: 900; }
.srs-pros-box h3 { color: #3f6f5b; }
.srs-cons-box h3 { color: #a43f55; }
.srs-pros-box ul,
.srs-cons-box ul { margin: 0; padding-left: 20px; }
.srs-pros-box li,
.srs-cons-box li { margin: 8px 0; overflow-wrap: anywhere; }

/* Specs */
.srs-spec-list {
    margin: 0;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}
.srs-spec-row {
    display: grid;
    grid-template-columns: minmax(140px, 30%) minmax(0, 1fr);
    border-bottom: 1px solid rgba(0,0,0,.08);
}
.srs-spec-row:last-child { border-bottom: 0; }
.srs-spec-row dt,
.srs-spec-row dd {
    margin: 0;
    padding: 13px 14px;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.srs-spec-row dt {
    font-weight: 900;
    background: #fff7fa;
    color: #5a3f4c;
}
.srs-spec-row dd { color: #241a20; }

/* Best for labels */
.srs-best-for-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
    gap: 14px;
}
.srs-best-for-card {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    padding: 18px;
    background: #fff;
    min-width: 0;
}
.srs-best-for-card .srs-best-badge { margin: 0 0 12px; align-self: flex-start; }
.srs-best-for-card p { margin: 0; color: #4b5563; line-height: 1.55; overflow-wrap: anywhere; }

@media (max-width: 900px) {
    .srs-metrics-grid,
    .srs-pros-cons-grid { grid-template-columns: 1fr; }
    .srs-product-grid { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
}
@media (max-width: 640px) {
    .srs-section,
    .srs-editor-shell { margin: 26px 0; }
    .srs-editor-shell { padding: 14px; }
    .srs-section-title { font-size: clamp(24px, 8vw, 34px); margin-bottom: 18px; }
    .srs-product-grid { grid-template-columns: 1fr; }
    .srs-product-card { padding: 18px; min-height: 0; }
    .srs-card-body { grid-template-columns: 130px minmax(0, 1fr); gap: 16px; }
    .srs-card-image-wrap { min-height: 140px; }
    .srs-card-title { font-size: 18px; }
    .srs-card-image { max-width: 170px; max-height: 150px; }
    .srs-rating-circle { width: 118px; height: 118px; }
    .srs-rating-circle-inner { width: 88px; height: 88px; }
    .srs-rating-circle-inner strong { font-size: 30px; }
    .srs-dot-row { gap: 5px; }
    .srs-dot-row span { width: 10px; height: 10px; }
    .srs-spec-row { grid-template-columns: 1fr; }
    .srs-spec-row dt { border-bottom: 1px solid rgba(0,0,0,.05); }
    .srs-comparison-table { min-width: 620px; font-size: 14px; }
    .srs-comparison-table th,
    .srs-comparison-table td { padding: 11px 10px; }
}
@media (max-width: 420px) {
    .srs-card-body { grid-template-columns: 1fr; text-align: left; }
    .srs-card-image-wrap { justify-content: center; min-height: 130px; }
    .srs-card-image { max-width: 240px; max-height: 180px; }
    .srs-award { text-align: left; }
    .srs-best-badge { margin-left: 0; margin-right: 0; }
}
