/* Product Walltool — Rebel-like preview UI */

.walltool-panel {
    border: 1px solid #e5e5e5;
    padding: 16px;
    background: #fff;
}

.walltool-panel__title {
    font-family: var(--font-heading, 'Sofia Sans Condensed', sans-serif);
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.walltool-rate-label {
    font-size: 0.875rem;
}

.walltool-total-line {
    font-size: 0.95rem;
}

/* Fullscreen walltool: document-style vertical scroll (Rebel), not locked to one viewport */
#walltoolPreviewModal {
    z-index: 2000;
    overflow-y: auto !important;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

#walltoolPreviewModal .modal-dialog.modal-fullscreen {
    height: auto;
    min-height: 100%;
    max-width: none;
    margin: 0;
}

#walltoolPreviewModal .modal-content.walltool-preview-modal {
    height: auto;
    min-height: 100%;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

.walltool-preview-modal {
    background: #e8e8e4;
}

.walltool-preview-modal .modal-body {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: visible;
    background: #e8e8e4;
}

.walltool-stage {
    position: relative;
    flex: 0 0 auto;
    /* Crop ~630 + 60px top/bottom — no full-viewport empty bands */
    min-height: calc(630px + 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e4;
    /* Clip crop wash (9999px box-shadow) so it cannot veil the bottom bar */
    overflow: hidden;
    /* Symmetric sides so crop stays visually centered; person fits in side pad */
    padding: 60px 180px 60px 180px;
    cursor: grab;
    z-index: 0;
}

.walltool-stage.is-dragging {
    cursor: grabbing;
}

/* Sample modal: above sticky nav / mini-cart (nav stacking can exceed Bootstrap 1055) */
#walltoolSampleModal {
    z-index: 11010;
}
#walltoolSampleModal .modal-dialog {
    pointer-events: auto;
    z-index: 11011;
}
body.walltool-sample-open .modal-backdrop {
    z-index: 11000;
}

/* How to Measure: same stacking as other PDP modals (backdrop is 10040 on product pages) */
#walltoolMeasureHelpModal {
    z-index: 10050 !important;
}
#walltoolMeasureHelpModal .modal-dialog {
    pointer-events: auto;
    z-index: 10051;
}

#walltoolPreviewModal .modal-dialog {
    pointer-events: auto;
}

.walltool-toolbar {
    position: absolute;
    top: 20px;
    left: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    z-index: 5;
}

.walltool-tool-btn {
    height: 44px;
    border-radius: 999px;
    border: none;
    background: #fff;
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    padding: 0 16px 0 12px;
    line-height: 1;
    width: auto;
    min-width: 44px;
}

.walltool-tool-btn--back {
    width: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
}

.walltool-tool-btn i {
    font-size: 1.15rem;
    flex-shrink: 0;
    width: 1.25em;
    text-align: center;
}

.walltool-tool-btn__label {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
    line-height: 1;
}

.walltool-tool-btn:hover {
    background: #f3f3f3;
}

.walltool-tool-btn.active:not(.walltool-tool-btn--back) {
    background: #111;
    color: #fff;
}

.walltool-toolbar__hint {
    margin: 4px 0 0;
    max-width: 9.5rem;
    padding: 0 2px;
    font-size: 0.75rem;
    line-height: 1.45;
    font-weight: 500;
    color: #111;
    text-shadow:
        0 0 3px #fff,
        1px 0 0 #fff,
        -1px 0 0 #fff,
        0 1px 0 #fff,
        0 -1px 0 #fff;
    pointer-events: none;
}

.walltool-toolbar__hint strong {
    font-weight: 700;
}

.walltool-canvas-wrap {
    --walltool-ruler-size: 28px;
    position: relative;
    display: block;
    width: max-content;
    max-width: none;
    margin: 0 auto;
    overflow: visible;
}

.walltool-ruler {
    position: absolute;
    background: transparent;
    overflow: visible;
    z-index: 8;
    border: none;
    box-sizing: border-box;
    pointer-events: none;
}

.walltool-ruler--top {
    left: 0;
    top: calc(-1 * var(--walltool-ruler-size));
    width: 100%;
    height: var(--walltool-ruler-size);
}

.walltool-ruler--left {
    left: calc(-1 * var(--walltool-ruler-size));
    top: 0;
    width: var(--walltool-ruler-size);
    height: 100%;
}

.walltool-ruler__tick {
    position: absolute;
    background: #111;
}

.walltool-ruler--top .walltool-ruler__tick {
    bottom: 0;
    width: 1px;
    height: 5px;
}

.walltool-ruler--top .walltool-ruler__tick.is-mid {
    height: 9px;
}

.walltool-ruler--top .walltool-ruler__tick.is-major {
    height: 14px;
}

.walltool-ruler--top .walltool-ruler__tick.is-end {
    height: 16px;
    width: 2px;
}

.walltool-ruler--left .walltool-ruler__tick {
    right: 0;
    height: 1px;
    width: 5px;
}

.walltool-ruler--left .walltool-ruler__tick.is-mid {
    width: 9px;
}

.walltool-ruler--left .walltool-ruler__tick.is-major {
    width: 14px;
}

.walltool-ruler--left .walltool-ruler__tick.is-end {
    width: 16px;
    height: 2px;
}

.walltool-ruler__label {
    position: absolute;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    color: #111;
    pointer-events: none;
    white-space: nowrap;
    z-index: 2;
    font-family: var(--font-body, 'Open Sans', sans-serif);
    text-shadow:
        0 0 2px #fff,
        1px 0 0 #fff,
        -1px 0 0 #fff,
        0 1px 0 #fff,
        0 -1px 0 #fff;
}

.walltool-ruler--top .walltool-ruler__label {
    top: 3px;
    transform: translateX(-50%);
}

.walltool-ruler--top .walltool-ruler__label.is-start {
    transform: translateX(0);
    left: 3px !important;
}

.walltool-ruler--top .walltool-ruler__label.is-end {
    transform: translateX(-100%);
}

.walltool-ruler--left .walltool-ruler__label {
    left: 2px;
    transform: translateY(-50%);
    max-width: calc(var(--walltool-ruler-size) - 2px);
    font-size: 10px;
}

.walltool-ruler--left .walltool-ruler__label.is-start {
    transform: translateY(0);
    top: auto !important;
    bottom: 2px;
}

.walltool-ruler--left .walltool-ruler__label.is-end {
    transform: translateY(0);
    top: 2px !important;
}

.walltool-dim-pill {
    position: absolute;
    z-index: 6;
    background: #fff;
    border: 1px solid #111;
    border-radius: 999px;
    padding: 3px 11px;
    font-size: 12px;
    font-weight: 600;
    color: #111;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.walltool-dim-pill--w {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.walltool-dim-pill--h {
    right: 10px;
    top: 50%;
    transform: translate(50%, -50%) rotate(90deg);
    transform-origin: center center;
}

/* Scene: crop window + dual-tile pattern extending outside */
.walltool-scene {
    position: relative;
    flex: 0 0 auto;
    overflow: visible;
    cursor: grab;
    touch-action: none;
    z-index: 1;
    isolation: isolate;
    /* Same as left: full faded wallpaper outside crop on the right */
    clip-path: inset(-100vmax -100vmax -100vmax -100vmax);
}

.walltool-scene.is-dragging {
    cursor: grabbing;
}

.walltool-pattern-layer {
    position: absolute;
    left: 50%;
    top: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    transform-origin: center top;
    z-index: 1;
    user-select: none;
    pointer-events: none;
    will-change: transform;
    opacity: 1;
}

/* Keep crop area full opacity while dragging — only outside-crop wash fades sides */
.walltool-pattern-layer.is-dragging {
    opacity: 1;
}

.walltool-pattern-tile {
    display: block;
    max-width: none;
    flex: 0 0 auto;
    object-fit: fill;
    pointer-events: none;
    image-rendering: auto;
}

.walltool-frame {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    overflow: visible;
    background: transparent;
    outline: 1px dashed #111;
    outline-offset: 0;
    /* Light wash outside crop (Rebel-style) */
    box-shadow: 0 0 0 9999px rgba(236, 236, 232, 0.78);
    z-index: 2;
    pointer-events: none;
}

/* Scale figure: absolute on crop right — toggle must not shift crop */
.walltool-person {
    position: absolute;
    left: 100%;
    bottom: 0;
    top: auto;
    right: auto;
    z-index: 50;
    display: block;
    /* 10px gap from crop edge — do not overlap the dashed line */
    margin: 0 0 0 10px;
    pointer-events: none;
    opacity: 1;
    overflow: visible;
}

/* When a narrow viewport cannot fit the true-scale figure beside the crop,
   overlay it at the crop's bottom-right instead of clipping or shrinking it. */
.walltool-person.walltool-person--inside {
    left: auto;
    right: 8px;
    bottom: 0;
    margin-left: 0;
    filter: drop-shadow(0 2px 2px rgba(255, 255, 255, 0.75));
}

.walltool-crop-corners {
    position: absolute;
    inset: -1px;
    pointer-events: none;
    /* Top corners only — bottom L-marks read as extra floor lines under the person */
    background:
        linear-gradient(#111, #111) left top / 18px 2px no-repeat,
        linear-gradient(#111, #111) left top / 2px 18px no-repeat,
        linear-gradient(#111, #111) right top / 18px 2px no-repeat,
        linear-gradient(#111, #111) right top / 2px 18px no-repeat;
}

.walltool-panels {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.walltool-panel-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 2px solid #2ecc71;
    opacity: 0.9;
    transform: translateX(-1px);
}

.walltool-person__figure {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

.walltool-person__img,
.walltool-person__svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    object-fit: contain;
    object-position: bottom center;
    user-select: none;
    pointer-events: none;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
}

.walltool-person__label {
    display: none;
}

.walltool-drag-hint {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    font-size: 13px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 4;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Empty dimensions prompt — centered in crop (Rebel-style) */
.walltool-empty-dims {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    pointer-events: none;
    box-sizing: border-box;
}

.walltool-empty-dims[hidden] {
    display: none !important;
}

.walltool-empty-dims__text {
    margin: 0;
    max-width: 280px;
    padding: 18px 22px;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    border-radius: 12px;
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.walltool-preview-bar {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1.15fr 1.35fr 1fr;
    gap: 14px;
    align-items: stretch;
    padding: 14px 18px 16px;
    background: #ecece8;
    border-top: 1px solid #ddd;
    flex: 0 0 auto;
    max-height: none;
    overflow: visible;
}

.walltool-preview-bar--rebel {
    grid-template-columns: minmax(260px, 1.1fr) minmax(280px, 1.35fr) minmax(240px, 1fr);
}

.walltool-preview-bar:not(.walltool-preview-bar--with-material) {
    grid-template-columns: 1.45fr 0.7fr 1fr;
}

.walltool-bar-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e4e4e0;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.walltool-bar-card--size {
    gap: 12px;
}

.walltool-preview-size-slot {
    min-width: 0;
}

.walltool-preview-bar .rw-wallsize {
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
}

.walltool-preview-bar .rw-wallsize__preview-btn {
    display: none !important;
}

.walltool-preview-bar .rw-wallsize__hint {
    margin-bottom: 0;
}

/* Product-page step headings and image cards stay in the buy box only.
   The crop preview keeps its original compact left column; material selection
   remains available in the dedicated middle column. */
.rw-wallsize--in-preview > .rw-wallsize__step-head,
.rw-wallsize--in-preview > .buybox-material-picker {
    display: none !important;
}

.walltool-bar-card--material {
    max-height: none;
    padding-bottom: 10px;
}

.walltool-preview-bar__material,
.walltool-bar-card--material .walltool-material-group {
    min-width: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    max-height: none;
    flex: 1;
    min-height: 0;
}

.walltool-material-group {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.walltool-material__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    flex: 0 0 auto;
}

.walltool-material__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: visible;
    min-height: 0;
    flex: 1;
    padding-right: 0;
}

.walltool-material__row {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 10px;
    align-items: center;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #e6e6e2;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.walltool-material__row:hover {
    border-color: #c8c8c4;
}

.walltool-material__row.is-selected {
    border-color: #111;
    background: #fafafa;
    box-shadow: inset 0 0 0 1px #111;
}

.walltool-material__row.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.walltool-material__thumb {
    width: 48px;
    height: 48px;
    overflow: hidden;
    background: #eee;
    display: block;
    border-radius: 4px;
}

.walltool-material__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.walltool-material__thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 14px;
    font-weight: 700;
    color: #666;
}

.walltool-material__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.walltool-material__title {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    line-height: 1.25;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.walltool-material__badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #5a4a00;
    background: #f5e6a3;
    padding: 2px 7px;
    border-radius: 3px;
}

.walltool-material__meta {
    font-size: 11px;
    color: #777;
    line-height: 1.3;
}

.walltool-material__rate {
    font-size: 12px;
    color: #333;
    font-weight: 600;
}

.walltool-material__rate del {
    margin-left: 4px;
    color: #888;
    font-weight: 400;
}

.walltool-material__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.walltool-material__check {
    width: 18px;
    height: 18px;
    border: 2px solid #999;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.walltool-material__row.is-selected .walltool-material__check {
    border-color: #111;
}

.walltool-material__row.is-selected .walltool-material__check::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #111;
}

.walltool-bar-card--checkout {
    gap: 10px;
}

.walltool-bar-checkout__meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.walltool-bar-card--checkout .walltool-add-btn {
    order: 0;
}

.walltool-bar-checkout__payments {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
}

.walltool-bar-checkout__payments span {
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 2px 6px;
    background: #fafafa;
}

.walltool-bar-checkout__trust {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 12px;
    color: #444;
    line-height: 1.45;
}

.walltool-bar-checkout__trust li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.walltool-bar-checkout__trust .bi-check2 {
    color: #2f9e44;
    margin-top: 1px;
}

.walltool-bar-checkout__product {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.walltool-bar-checkout__thumb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #eee;
    flex-shrink: 0;
}

.walltool-bar-checkout__name {
    font-size: 12px;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
}

.walltool-bar-checkout__sku {
    font-size: 11px;
    color: #777;
}

.walltool-preview-bar__summary {
    text-align: right;
    margin-bottom: 8px;
}

.walltool-preview-bar__size-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.walltool-preview-bar__heading {
    font-family: var(--font-heading, 'Sofia Sans Condensed', sans-serif);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
}

.walltool-preview-bar__size-head .walltool-unit {
    width: auto;
    min-width: 5.5rem;
    max-width: 6.5rem;
}

.walltool-preview-bar__dim-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.walltool-preview-bar__dim {
    flex: 1 1 140px;
    min-width: 0;
}

.walltool-preview-bar__dim-label {
    display: block;
    font-size: 12px;
    color: #555;
    margin-bottom: 4px;
}

.walltool-preview-bar__times {
    display: inline-flex;
    align-items: center;
    padding-bottom: 6px;
    font-size: 1.1rem;
    color: #888;
    line-height: 1;
}

.walltool-preview-bar__hint {
    margin: 10px 0 12px;
    font-size: 12px;
    line-height: 1.45;
    color: #777;
}

.walltool-measure-link {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    color: #111;
    font-size: inherit;
    line-height: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.walltool-measure-link:hover {
    color: #333;
}

.walltool-preview-bar__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.walltool-chip-btn {
    min-width: 88px;
    padding: 8px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 999px;
    background: #f3f3f1;
    color: #111;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.walltool-chip-btn:hover {
    background: #eaeae6;
}

.walltool-chip-btn.active,
#walltoolFlipBtn.active,
#walltoolGrayBtn.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.walltool-preview-bar__mid {
    text-align: center;
    padding-bottom: 4px;
}

.walltool-preview-bar__area {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

.walltool-preview-bar__price {
    font-size: 1.35rem;
    font-weight: 700;
}

.walltool-add-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    border: none;
    border-radius: 6px;
    background: #2f9e44;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.walltool-add-btn:hover {
    background: #278a3a;
}

.walltool-add-btn__sep {
    opacity: 0.7;
}

.walltool-add-btn__compare {
    opacity: 0.78;
    font-size: 0.82em;
    font-weight: 500;
}

/* ===== Rebel-style PDP buybox ===== */
.rw-buybox {
    font-family: var(--font-body, 'Open Sans', sans-serif);
    color: #111;
}

.rw-buybox__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.rw-buybox__sku {
    font-size: 0.8125rem;
    color: #888;
    margin-bottom: 0.35rem;
    letter-spacing: 0.02em;
}

.rw-buybox__title,
.rw-buybox .product-title {
    font-family: var(--font-heading, 'Sofia Sans Condensed', sans-serif) !important;
    font-size: clamp(1.35rem, 2vw, 1.75rem) !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.15;
    color: #111 !important;
}

.rw-buybox__short-desc {
    font-size: 0.9375rem;
    line-height: 1.45;
    max-width: 36em;
}

.rw-buybox__wish {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    font-size: 1.35rem;
    line-height: 1;
}

.rw-buybox__wish:hover {
    color: #000;
}

.rw-buybox__label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #111;
}

.rw-colorways__swatch {
    cursor: pointer;
}

.rw-colorways__swatch.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.rw-colorways__circle {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    box-sizing: border-box;
    background: #f0f0f0;
}

.rw-colorways__circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rw-colorways__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.75rem;
    font-weight: 600;
    color: #555;
}

.rw-colorways__swatch:has(.product-option-radio:checked) .rw-colorways__circle {
    border-color: #111;
    box-shadow: 0 0 0 1px #111;
}

.rw-colorways__swatch:has(.product-option-radio:focus-visible) .rw-colorways__circle {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.rw-buybox__price {
    margin: 1rem 0 1.25rem;
}

.rw-buybox__price-line {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 7px;
    font-size: 1.05rem;
    color: #111;
}

.rw-buybox__price-line strong {
    font-size: 1.15rem;
    font-weight: 700;
}

.rw-buybox__compare-total {
    color: #777;
    font-size: 0.98rem;
    font-weight: 400;
}

.rw-buybox__discount {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 3px;
    background: #111;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.45;
}

.rw-buybox__price-rate {
    color: #111;
    font-weight: 400;
}

.rw-buybox__price-rate .price {
    font-weight: 400 !important;
    color: #111 !important;
}

.rw-buybox__price-rate .compare-price {
    margin-left: 3px;
    color: #777;
    font-size: 0.92em;
}

.rw-wallsize {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    background: #fff;
    margin-bottom: 1rem;
}

.rw-wallsize__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.rw-wallsize__title {
    margin: 0;
    font-size: 0.95rem !important;
}

.rw-wallsize__unit {
    width: auto;
    min-width: 4.5rem;
    border-radius: 6px !important;
    border-color: #ddd;
}

.rw-wallsize__dims {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 12px;
}

.rw-wallsize__dim {
    flex: 1 1 0;
    min-width: 0;
}

.rw-wallsize__dim-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #333;
}

.rw-wallsize__group > .walltool-unit-single,
.rw-wallsize__group > .walltool-unit-ft,
.rw-wallsize__group > .walltool-unit-in {
    font-weight: 700;
}

.rw-wallsize__group {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

/* Border on wrapper — avoids Bootstrap input-group clipping when ft/in are d-none */
.rw-wallsize__group > .form-control,
.rw-wallsize__group > .input-group-text {
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff;
    margin-left: 0 !important;
    box-shadow: none !important;
}

.rw-wallsize__group > .input-group-text {
    border-left: 1px solid #ddd !important;
}

/* Match unit-label dividers: also separate inches field from the "ft" suffix */
.rw-wallsize__group > .walltool-in:not(.d-none) {
    border-left: 1px solid #ddd !important;
}

/* ft / in inputs share equal width; unit labels stay compact */
.rw-wallsize__group > .walltool-ft,
.rw-wallsize__group > .walltool-in {
    flex: 1 1 0 !important;
    width: 0 !important;
    min-width: 0 !important;
}

.rw-wallsize__group > .walltool-unit-ft,
.rw-wallsize__group > .walltool-unit-in {
    flex: 0 0 auto !important;
    width: auto !important;
}

.rw-wallsize__group:focus-within {
    border-color: #111;
}

.rw-wallsize__group .form-control:focus {
    box-shadow: none !important;
    border-color: transparent !important;
    z-index: 2;
}

/* Hide number spinners — dimensions are typed manually */
.rw-wallsize__group input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.rw-wallsize__group input[type="number"]::-webkit-outer-spin-button,
.rw-wallsize__group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.rw-wallsize__times {
    padding-bottom: 8px;
    font-size: 1.1rem;
    color: #666;
    flex-shrink: 0;
}

.rw-wallsize__hint {
    font-size: 0.75rem;
    line-height: 1.45;
    color: #777;
    margin-bottom: 14px;
}

.rw-wallsize__preview-btn {
    width: 100%;
    border: none;
    border-radius: 4px;
    background: #111;
    color: #fff;
    font-family: var(--font-heading, 'Sofia Sans Condensed', sans-serif);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 16px;
    cursor: pointer;
}

.rw-wallsize__preview-btn:hover {
    background: #000;
}

.rw-sample {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 1.25rem;
    background: #fff;
}

.rw-sample__title {
    font-family: var(--font-heading, 'Sofia Sans Condensed', sans-serif);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.rw-sample__desc {
    font-size: 0.8125rem;
    color: #666;
}

.rw-sample__price {
    font-weight: 600;
    color: #111;
}

.walltool-sample-summary__img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 4px;
    background: #eee;
    flex-shrink: 0;
}

.rw-sample__btn {
    flex-shrink: 0;
    border: 1px solid #111;
    border-radius: 4px;
    background: #fff;
    color: #111;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 10px 14px;
    cursor: pointer;
    white-space: nowrap;
}

.rw-sample__btn:hover {
    background: #111;
    color: #fff;
}

.rw-trust {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.rw-trust li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #333;
    margin-bottom: 8px;
}

.rw-trust .bi-check2 {
    color: #b0b0b0;
    font-size: 1.05rem;
    margin-top: 1px;
    flex-shrink: 0;
}

.rw-trust__link {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rw-trust__link:hover {
    color: #000;
}

.rw-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.rw-rating__label {
    font-weight: 700;
    color: #111;
}

.rw-rating__stars {
    color: #111111;
    letter-spacing: 1px;
}

.rw-rating__meta {
    color: #777;
}

.rw-rating__write {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-left: auto;
}

.rw-buybox .rw-share.sharethis-inline-share-buttons,
.rw-buybox .sharethis-inline-share-buttons {
    text-align: left !important;
    min-height: 32px;
}

.rw-payments {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0.25rem;
}

.rw-payments__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 8px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #444;
    text-transform: uppercase;
}

/* Aside info panels (Why / How to measure / Product information) */
.rw-aside-panels {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 1.5rem;
}

.rw-aside-panel {
    border: 1px solid #e5e5e5;
    background: #fff;
    padding: 16px 18px;
}

.rw-aside-panel__title {
    margin: 0 0 12px;
    font-family: var(--font-heading, 'Sofia Sans Condensed', sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9a9a9a;
}

.rw-aside-panel__text {
    margin: 0 0 14px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #333;
}

.rw-aside-panel__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.rw-aside-panel__email {
    font-size: 0.875rem;
    line-height: 1.45;
    color: #333;
}

.rw-aside-list {
    list-style: disc;
    padding-left: 1.15rem;
    margin: 0 0 12px;
}

.rw-aside-list:last-child {
    margin-bottom: 0;
}

.rw-aside-list li {
    font-size: 0.875rem;
    line-height: 1.45;
    color: #333;
    margin-bottom: 6px;
}

.rw-aside-list--links li {
    list-style: disc;
}

.rw-aside-link {
    display: inline;
    padding: 0;
    border: none;
    background: none;
    color: #111;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.rw-aside-link:hover {
    color: #000;
}

.rw-aside-link--strong {
    font-weight: 700;
}

.rw-aside-panel--accordion {
    padding: 0;
}

.rw-aside-accordion__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border: none;
    background: #fff;
    color: #9a9a9a;
    font-family: var(--font-heading, 'Sofia Sans Condensed', sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: left;
}

.rw-aside-accordion__btn .bi-chevron-down {
    font-size: 0.9rem;
    color: #888;
    transition: transform 0.2s ease;
}

.rw-aside-accordion__btn[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.rw-aside-accordion__body {
    padding: 0 18px 16px;
    border-top: 1px solid #eee;
}

.rw-aside-specs {
    margin: 12px 0 0;
}

.rw-aside-specs__row {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.8125rem;
}

.rw-aside-specs__row:last-child {
    border-bottom: none;
}

.rw-aside-specs__row dt {
    margin: 0;
    color: #888;
    font-weight: 500;
}

.rw-aside-specs__row dd {
    margin: 0;
    color: #222;
}

@media (max-width: 575.98px) {
    .rw-rating {
        row-gap: 6px;
    }

    .rw-rating__write {
        flex: 0 0 100%;
        margin-left: 0;
        text-align: left;
    }

    .rw-wallsize__dims {
        flex-direction: column;
        align-items: stretch;
    }

    .rw-wallsize__times {
        display: none;
    }

    .rw-sample {
        flex-direction: column;
        align-items: stretch;
    }

    .rw-sample__btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 991.98px) {
    /* Must beat .walltool-preview-bar:not(--with-material) (3-col) specificity */
    .walltool-preview-bar,
    .walltool-preview-bar.walltool-preview-bar--rebel,
    .walltool-preview-bar.walltool-preview-bar--with-material,
    .walltool-preview-bar:not(.walltool-preview-bar--with-material) {
        grid-template-columns: 1fr !important;
        gap: 12px;
        align-items: stretch;
        max-height: none;
        overflow: visible;
        padding: 12px 12px 20px;
    }

    .walltool-bar-card--material {
        max-height: none;
        order: 1;
    }

    .walltool-bar-card--size {
        order: 0;
    }

    .walltool-bar-card--mid {
        order: 1;
    }

    .walltool-bar-card--checkout {
        order: 2;
    }

    .walltool-preview-bar__mid {
        text-align: left;
        order: -1;
    }

    .walltool-preview-bar__summary,
    .walltool-bar-checkout__meta {
        text-align: left;
    }

    .walltool-add-btn {
        white-space: nowrap;
        justify-content: center;
        flex-wrap: nowrap;
        width: 100%;
    }

    .walltool-stage {
        min-height: min(70vh, 520px);
        /* Extra top pad so crop + top ruler sit below the toolbar */
        padding: 96px 16px 56px;
        align-items: flex-start;
        justify-content: center;
    }

    .walltool-toolbar {
        top: 8px;
        left: 8px;
        right: 8px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        max-width: calc(100% - 16px);
        z-index: 12;
    }

    .walltool-tool-btn {
        height: 40px;
        padding: 0 12px 0 10px;
    }

    .walltool-tool-btn--back {
        width: 40px;
        padding: 0;
    }

    .walltool-tool-btn__label {
        font-size: 0.8125rem;
    }

    .walltool-toolbar__hint {
        display: none;
    }

    .walltool-drag-hint {
        bottom: 10px;
        white-space: normal;
        text-align: center;
        max-width: calc(100% - 24px);
        font-size: 12px;
        padding: 7px 12px;
    }

    .walltool-empty-dims {
        padding: 12px;
    }

    .walltool-empty-dims__text {
        max-width: 240px;
        font-size: 13px;
        padding: 14px 16px;
    }
}

@media (max-width: 575.98px) {
    .walltool-stage {
        min-height: min(58vh, 420px);
        padding: 88px 12px 48px;
    }

    .walltool-tool-btn__label {
        display: none;
    }

    .walltool-tool-btn:not(.walltool-tool-btn--back) {
        width: 40px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .walltool-bar-card {
        padding: 12px 14px;
    }

    .walltool-preview-bar__actions {
        flex-wrap: wrap;
    }

    .walltool-chip-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}
/* Full-screen product image viewer */
.product-image-lightbox .modal-content{background:rgba(248,248,245,.96);border:0;border-radius:0;}
.product-image-lightbox .modal-header{position:absolute;inset:0 0 auto auto;z-index:20;border:0;padding:22px;background:transparent}
.product-image-lightbox .modal-title{display:none}
.product-image-lightbox .btn-close{width:46px;height:46px;border-radius:50%;background-color:#fff;opacity:1;box-shadow:0 2px 12px rgba(0,0,0,.12)}
.product-image-lightbox .modal-body{display:flex;align-items:center;justify-content:center;padding:48px 8vw 32px}
.product-image-lightbox .modal-body>.row{width:100%;height:100%;display:block}
.product-image-lightbox .modal-body .col-md-8{width:100%;height:100%;padding:0}
.product-image-lightbox .image-viewer-container{height:100%!important;min-height:0!important;display:flex;align-items:center;justify-content:center}
.product-image-lightbox #modalMainImage{max-width: min(86vw, 1240px)!important;max-height: calc(100vh - 80px)!important;width:auto;height:auto;object-fit:contain;border-radius:0!important}
.product-image-lightbox .image-nav-btn{position:fixed!important;top:50%!important;width:52px!important;height:52px!important;background:#fff;border:0;box-shadow:0 2px 12px rgba(0,0,0,.12)!important}
.product-image-lightbox .image-nav-prev{left:20px!important}.product-image-lightbox .image-nav-next{right:20px!important}
.product-image-lightbox .image-counter{bottom:28px!important}
.product-image-lightbox .modal-body>.row>.col-md-4{display:none}
@media(max-width:576px){.product-image-lightbox .modal-body{padding:40px 16px 24px}.product-image-lightbox .image-nav-prev{left:10px!important}.product-image-lightbox .image-nav-next{right:10px!important}}
