/*
 * ck-wholesale-v1.css - the bulk department's own layer.
 *
 * Scoped under .ck-ws (the landing) and .ck-wp (a bulk listing), so nothing here reaches the
 * retail shelf, the retail product page or the checkout. The shop's own palette is used as it
 * is: the red is the brand red and the grey is the shop's grey.
 *
 * Two things this sheet is careful about.
 *
 * A bulk listing has no single-unit price, so there is no price element shaped like the retail
 * one. The price line is a quantity price and says which rung it belongs to, and a listing the
 * shop cannot price says so in words rather than showing a figure in a different colour.
 *
 * Mobile first. The grid is one column on a phone and two on a desktop, the tier table stays a
 * table because the two numbers on it are meant to be compared, and the quantity stepper keeps
 * its touch targets at the size a thumb can hit.
 */

.ck-ws,
.ck-wp,
.ck-wr {
    --ck-ws-ink: #111827;
    --ck-ws-muted: #6b7280;
    --ck-ws-line: #e5e7eb;
    --ck-ws-soft: #f8fafc;
    --ck-ws-brand: #e31e24;
}

/* ------------------------------------------------------------------ landing */

.ck-ws {
    padding: 12px 14px 28px;
}

@media (min-width: 768px) {
    .ck-ws {
        padding: 18px 22px 40px;
    }
}

.ck-ws .ck-ws-hero {
    padding: 20px 18px;
    border-radius: 16px;
    background: linear-gradient(158deg, #7c1c1c 0%, #430a0a 100%);
    color: #fff;
}

@media (min-width: 768px) {
    .ck-ws .ck-ws-hero {
        padding: 30px 32px;
    }
}

.ck-ws .ck-ws-hero-kicker {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fbcbcb;
}

.ck-ws .ck-ws-hero-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.18;
}

@media (min-width: 768px) {
    .ck-ws .ck-ws-hero-title {
        font-size: 30px;
    }
}

.ck-ws .ck-ws-hero-copy {
    margin: 0 0 16px;
    max-width: 42em;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.86);
}

.ck-ws .ck-ws-hero-doors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ck-ws .ck-ws-door {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid var(--ck-ws-line);
    border-radius: 999px;
    background: #fff;
    color: var(--ck-ws-ink);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.ck-ws .ck-ws-door.is-primary {
    border-color: transparent;
    background: var(--ck-ws-brand);
    color: #fff;
}

.ck-ws .ck-ws-hero .ck-ws-door:not(.is-primary) {
    border-color: rgba(255, 255, 255, 0.4);
    background: transparent;
    color: #fff;
}

.ck-ws .ck-ws-door svg {
    width: 14px;
    height: 14px;
}

/* ------------------------------------------------------------------- shelves */

.ck-ws .ck-ws-shelves {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

@media (min-width: 560px) {
    .ck-ws .ck-ws-shelves {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .ck-ws .ck-ws-shelves {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.ck-ws .ck-ws-shelf {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--ck-ws-line);
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
}

.ck-ws .ck-ws-shelf.is-active {
    border-color: var(--ck-ws-brand);
    box-shadow: 0 0 0 1px var(--ck-ws-brand) inset;
}

.ck-ws .ck-ws-shelf-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--ck-ws-ink);
}

.ck-ws .ck-ws-shelf-desc {
    font-size: 12px;
    line-height: 1.45;
    color: var(--ck-ws-muted);
}

.ck-ws .ck-ws-shelf-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--ck-ws-brand);
}

/* --------------------------------------------------------------------- grid */

.ck-ws .ck-ws-grid {
    display: grid;
    grid-template-columns: 2fr;
    gap: 12px;
}

@media (min-width: 560px) {
    .ck-ws .ck-ws-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .ck-ws .ck-ws-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.ck-ws .ck-wcard {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ck-ws-line);
    border-radius: 14px;
    background: #fff;
}

.ck-ws .ck-wcard-media {
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--ck-ws-soft);
}

.ck-ws .ck-wcard-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ck-ws .ck-wcard-noimage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 12px;
    color: #9ca3af;
}

.ck-ws .ck-wcard-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px 12px;
}

.ck-ws .ck-wcard-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ck-ws-ink);
    text-decoration: none;
}

.ck-ws .ck-wcard-price {
    margin: 2px 0 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--ck-ws-brand);
}

.ck-ws .ck-wcard-price.is-request {
    font-size: 13px;
    font-weight: 700;
    color: var(--ck-ws-muted);
}

.ck-ws .ck-wcard-unit {
    margin-left: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ck-ws-muted);
}

.ck-ws .ck-wcard-tier {
    margin: 0;
    font-size: 11px;
    color: var(--ck-ws-muted);
}

.ck-ws .ck-wcard-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: auto 0 0;
    padding-top: 6px;
    font-size: 11px;
    color: var(--ck-ws-muted);
}

.ck-ws .ck-ws-empty {
    padding: 24px 20px;
    border: 1px dashed var(--ck-ws-line);
    border-radius: 14px;
    background: var(--ck-ws-soft);
    text-align: center;
}

.ck-ws .ck-ws-empty-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ck-ws-ink);
}

.ck-ws .ck-ws-empty-copy {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ck-ws-muted);
}

.ck-ws .ck-ws-more {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

/* ---------------------------------------------------------- a bulk listing */

.ck-wp {
    padding: 12px 14px 28px;
}

@media (min-width: 768px) {
    .ck-wp {
        padding: 18px 22px 40px;
    }
}

.ck-wp .ck-wp-crumb {
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--ck-ws-muted);
}

.ck-wp .ck-wp-crumb a {
    color: var(--ck-ws-muted);
    text-decoration: none;
}

.ck-wp .ck-wp-crumb-sep {
    margin: 0 6px;
    color: #d1d5db;
}

.ck-wp .ck-wp-crumb-here {
    color: var(--ck-ws-ink);
}

.ck-wp .ck-wp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 900px) {
    .ck-wp .ck-wp-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 28px;
    }
}

.ck-wp .ck-wp-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--ck-ws-line);
    border-radius: 14px;
    background: #fff;
}

.ck-wp .ck-wp-stage.is-empty {
    background: var(--ck-ws-soft);
}

.ck-wp .ck-wp-stage-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ck-wp .ck-wp-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.ck-wp .ck-wp-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border: 1px solid var(--ck-ws-line);
    border-radius: 8px;
    background: #fff;
}

.ck-wp .ck-wp-mode {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #fee2e2;
    color: #b71c1c;
    font-size: 11px;
    font-weight: 700;
}

.ck-wp .ck-wp-mode[data-ckwp-mode='tiered'] {
    background: #dcfce7;
    color: #14532d;
}

.ck-wp .ck-wp-mode[data-ckwp-mode='custom_quotation'] {
    background: #e0e7ff;
    color: #3730a3;
}

.ck-wp .ck-wp-title {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--ck-ws-ink);
}

@media (min-width: 768px) {
    .ck-wp .ck-wp-title {
        font-size: 26px;
    }
}

.ck-wp .ck-wp-shelf {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--ck-ws-muted);
}

.ck-wp .ck-wp-tiers {
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid var(--ck-ws-line);
    border-radius: 14px;
    background: #fff;
}

.ck-wp .ck-wp-tiers-head {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ck-ws-ink);
}

.ck-wp .ck-wp-tier-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ck-wp .ck-wp-tier-table th {
    padding: 6px 8px;
    border-bottom: 1px solid var(--ck-ws-line);
    font-size: 11px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ck-ws-muted);
}

.ck-wp .ck-wp-tier-table th:last-child,
.ck-wp .ck-wp-tier-table td:last-child {
    text-align: right;
}

.ck-wp .ck-wp-tier-table td {
    padding: 9px 8px;
    border-bottom: 1px solid var(--ck-ws-soft);
    color: var(--ck-ws-ink);
}

.ck-wp .ck-wp-tier-table tr:last-child td {
    border-bottom: 0;
}

.ck-wp .ck-wp-tier-table tr.is-on td {
    font-weight: 700;
    color: var(--ck-ws-brand);
}

.ck-wp .ck-wp-request {
    font-size: 13px;
    font-weight: 600;
    color: var(--ck-ws-muted);
}

.ck-wp .ck-wp-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 16px;
}

.ck-wp .ck-wp-fact {
    padding: 10px 12px;
    border: 1px solid var(--ck-ws-line);
    border-radius: 12px;
    background: var(--ck-ws-soft);
}

.ck-wp .ck-wp-fact dt {
    margin: 0 0 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ck-ws-muted);
}

.ck-wp .ck-wp-fact dd {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ck-ws-ink);
}

.ck-wp .ck-wp-variants {
    margin-bottom: 16px;
}

.ck-wp .ck-wp-variants-head,
.ck-wp .ck-wp-qty-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ck-ws-ink);
}

.ck-wp .ck-wp-qty-min {
    font-size: 11px;
    font-weight: 600;
    color: var(--ck-ws-muted);
}

.ck-wp .ck-wp-variant-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ck-wp .ck-wp-variant {
    padding: 8px 12px;
    border: 1px solid var(--ck-ws-line);
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: var(--ck-ws-ink);
    cursor: pointer;
}

.ck-wp .ck-wp-variant.is-on {
    border-color: var(--ck-ws-brand);
    background: #fee2e2;
    color: #b71c1c;
}

.ck-wp .ck-wp-qty {
    margin-bottom: 16px;
}

.ck-wp .ck-wp-qty-row {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--ck-ws-line);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.ck-wp .ck-wp-qty-btn {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    font-size: 18px;
    font-weight: 700;
    color: var(--ck-ws-ink);
    cursor: pointer;
}

.ck-wp .ck-wp-qty-input {
    width: 96px;
    height: 42px;
    border: 0;
    border-left: 1px solid var(--ck-ws-line);
    border-right: 1px solid var(--ck-ws-line);
    padding: 0 8px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--ck-ws-ink);
}

.ck-wp .ck-wp-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--ck-ws-brand);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.ck-wp .ck-wp-cta svg {
    width: 14px;
    height: 14px;
}

.ck-wp .ck-wp-note {
    margin: 10px 0 14px;
    font-size: 12px;
    line-height: 1.55;
    color: var(--ck-ws-muted);
}

.ck-wp .ck-wp-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--ck-ws-line);
    font-size: 12px;
    color: var(--ck-ws-muted);
}

.ck-wp .ck-wp-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ck-wp .ck-wp-desc {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid var(--ck-ws-line);
    border-radius: 14px;
    background: #fff;
}

.ck-wp .ck-wp-desc-head {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ck-ws-ink);
}

.ck-wp .ck-wp-prose {
    font-size: 13px;
    line-height: 1.6;
    color: #4b5563;
}

.ck-wp .ck-wp-desc-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px;
}

@media (min-width: 768px) {
    .ck-wp .ck-wp-desc-images {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ck-wp .ck-wp-desc-img {
    width: 100%;
    border: 1px solid var(--ck-ws-line);
    border-radius: 10px;
    object-fit: contain;
}

/* ------------------------------------------------------- the request form */

.ck-wr {
    padding: 12px 14px 32px;
}

@media (min-width: 768px) {
    .ck-wr {
        padding: 18px 22px 44px;
    }
}

.ck-wr .ck-wr-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ck-ws-muted);
    text-decoration: none;
}

.ck-wr .ck-wr-kicker {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ck-ws-brand);
}

.ck-wr .ck-wr-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--ck-ws-ink);
}

@media (min-width: 768px) {
    .ck-wr .ck-wr-title {
        font-size: 28px;
    }
}

.ck-wr .ck-wr-copy {
    margin: 0 0 18px;
    max-width: 46em;
    font-size: 13px;
    line-height: 1.55;
    color: var(--ck-ws-muted);
}

.ck-wr .ck-wr-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ck-wr .ck-wr-card {
    padding: 16px;
    border: 1px solid var(--ck-ws-line);
    border-radius: 14px;
    background: #fff;
}

.ck-wr .ck-wr-card-head {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ck-ws-ink);
}

.ck-wr .ck-wr-card-copy {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--ck-ws-muted);
}

.ck-wr .ck-wr-line {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--ck-ws-line);
    border-radius: 12px;
    background: var(--ck-ws-soft);
}

.ck-wr .ck-wr-line-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ck-wr .ck-wr-line-no {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ck-ws-muted);
}

.ck-wr .ck-wr-line-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--ck-ws-line);
    border-radius: 8px;
    background: #fff;
    color: var(--ck-ws-muted);
    cursor: pointer;
}

.ck-wr .ck-wr-field {
    display: block;
    margin-bottom: 10px;
}

.ck-wr .ck-wr-label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ck-ws-ink);
}

.ck-wr .ck-wr-input {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--ck-ws-line);
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
    color: var(--ck-ws-ink);
}

.ck-wr .ck-wr-textarea {
    min-height: 76px;
    line-height: 1.5;
    resize: vertical;
}

.ck-wr .ck-wr-pair {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 10px;
}

@media (min-width: 560px) {
    .ck-wr .ck-wr-pair {
        grid-template-columns: 2fr 1fr;
    }
}

.ck-wr .ck-wr-hint {
    margin: -4px 0 10px;
    font-size: 11px;
    color: var(--ck-ws-muted);
}

.ck-wr .ck-wr-error {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    color: #b91c1c;
}

.ck-wr .ck-wr-picker {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--ck-ws-line);
}

.ck-wr .ck-wr-results {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--ck-ws-line);
    border-radius: 10px;
    overflow: hidden;
}

.ck-wr .ck-wr-result {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-bottom: 1px solid var(--ck-ws-soft);
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.ck-wr .ck-wr-results li:last-child .ck-wr-result {
    border-bottom: 0;
}

.ck-wr .ck-wr-result-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ck-ws-ink);
}

.ck-wr .ck-wr-result-min {
    font-size: 11px;
    font-weight: 700;
    color: var(--ck-ws-brand);
}

.ck-wr .ck-wr-add {
    margin-top: 12px;
}

.ck-wr .ck-wr-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 12px;
    border: 1px dashed var(--ck-ws-line);
    border-radius: 12px;
    background: var(--ck-ws-soft);
    cursor: pointer;
}

.ck-wr .ck-wr-file {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ck-wr .ck-wr-upload-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--ck-ws-ink);
}

.ck-wr .ck-wr-loading {
    margin-top: 8px;
    font-size: 12px;
    color: var(--ck-ws-muted);
}

.ck-wr .ck-wr-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 14px 16px;
    border: 0;
    border-radius: 12px;
    background: var(--ck-ws-brand);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.ck-wr .ck-wr-submit:disabled {
    opacity: 0.6;
    cursor: default;
}

.ck-wr .ck-wr-footnote {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--ck-ws-muted);
}

.ck-wr .ck-wr-done {
    padding: 22px 18px;
    border: 1px solid var(--ck-ws-line);
    border-radius: 16px;
    background: #fff;
}

.ck-wr .ck-wr-done-kicker {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ck-ws-brand);
}

.ck-wr .ck-wr-done-title {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--ck-ws-ink);
}

.ck-wr .ck-wr-done-copy {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--ck-ws-muted);
}

.ck-wr .ck-wr-done-ref {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid var(--ck-ws-line);
    border-radius: 12px;
    background: var(--ck-ws-soft);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--ck-ws-ink);
    text-align: center;
}

.ck-wr .ck-wr-done-list {
    margin: 0 0 14px;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ck-ws-ink);
}

.ck-wr .ck-wr-done-note {
    margin: 0 0 16px;
    font-size: 12px;
    line-height: 1.55;
    color: var(--ck-ws-muted);
}

.ck-wr .ck-wr-done-doors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
