.lwpe-brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
}

.lwpe-brand-logo {
    max-height: 42px;
    max-width: 140px;
    object-fit: contain;
    display: block;
}

.lwpe-brand-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.single-product .woocommerce-variation-availability {
    display: none !important;
}

.single-product .woocommerce-product-details__short-description {
    display: none !important;
}

.lwpe-selected-stock {
    margin: 14px 0;
    font-weight: 700;
}

.lwpe-branding-choice {
    margin: 18px 0;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fafafa;
}

.lwpe-branding-choice h4 {
    margin: 0 0 12px;
}

.lwpe-toggle-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lwpe-toggle {
    border: 1px solid #111;
    background: #fff;
    color: #111;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
}

.lwpe-toggle.is-active {
    background: #111;
    color: #fff;
}

.lwpe-branding-panel {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #ddd;
}

.lwpe-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0 30px;
}

.lwpe-swatch {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 999px;
    padding: 0;
    position: relative;
    border: 2px solid #bbb;
    cursor: pointer;
    font-size: 0;
    box-shadow: none;
}

.lwpe-swatch.is-light-swatch {
    border-color: #777;
}

.lwpe-swatch.is-active {
    outline: 3px solid #111;
    outline-offset: 3px;
}

.lwpe-swatch-label {
    position: absolute;
    left: 50%;
    top: calc(100% + 5px);
    transform: translateX(-50%);
    font-size: 10px;
    color: #111;
    white-space: nowrap;
    display: none;
}

.lwpe-swatch:hover .lwpe-swatch-label,
.lwpe-swatch.is-active .lwpe-swatch-label {
    display: block;
}

.lwpe-size-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 14px;
}

.lwpe-size-button {
    border: 1px solid #999;
    background: #fff;
    color: #111;
    min-width: 42px;
    min-height: 38px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.lwpe-size-button.is-active {
    outline: 2px solid #111;
    outline-offset: 2px;
}

/* Strong swatch rendering: colour is applied to inner span to avoid theme button overrides */
.lwpe-swatch {
    background: transparent !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: 999px !important;
    padding: 0 !important;
    border: 2px solid #bbb !important;
    position: relative;
    cursor: pointer;
    box-shadow: none !important;
}

.lwpe-swatch-colour {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.15);
}

.lwpe-swatch.is-light-swatch .lwpe-swatch-colour {
    border-color: #777;
}

.lwpe-swatch.is-active {
    outline: 3px solid #111 !important;
    outline-offset: 3px !important;
}

.lwpe-swatch-label {
    position: absolute;
    left: 50%;
    top: calc(100% + 5px);
    transform: translateX(-50%);
    font-size: 10px;
    color: #111;
    white-space: nowrap;
    display: none;
    background: #fff;
    padding: 2px 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    z-index: 10;
}

.lwpe-swatch:hover .lwpe-swatch-label,
.lwpe-swatch.is-active .lwpe-swatch-label {
    display: block;
}

.lwpe-branding-intro p {
    margin: 6px 0;
}

.lwpe-branding-note {
    color: #555;
    font-size: 13px;
}

.lwpe-branding-positions {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.lwpe-branding-position {
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 10px;
    padding: 12px;
}

.lwpe-branding-position.is-selected {
    border-color: #111;
}

.lwpe-position-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 700;
    margin: 0;
}

.lwpe-position-title {
    font-size: 14px;
}

.lwpe-position-size {
    margin-top: 6px;
    color: #666;
    font-size: 12px;
}

.lwpe-method-wrap {
    margin-top: 10px;
}

.lwpe-branding-method {
    width: 100%;
    max-width: 100%;
    padding: 9px;
    border: 1px solid #bbb;
    border-radius: 8px;
    background: #fff;
}

.lwpe-branding-summary {
    margin-top: 14px;
    font-size: 13px;
}

.lwpe-branding-summary ul {
    margin: 8px 0 0 18px;
}

.lwpe-branding-warning {
    margin-top: 10px;
    padding: 10px;
    background: #fff4d6;
    border: 1px solid #e0b500;
    border-radius: 8px;
    color: #4a3900;
}

.lwpe-branding-empty {
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.lwpe-branding-cost-table {
    display: grid;
    gap: 6px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}

.lwpe-cost-row {
    display: grid;
    grid-template-columns: 1.1fr 1.5fr 0.8fr 0.8fr 0.8fr;
    gap: 8px;
    padding: 8px;
    background: #fff;
    border-bottom: 1px solid #eee;
    font-size: 12px;
}

.lwpe-cost-row:last-child {
    border-bottom: 0;
}

.lwpe-cost-head {
    background: #111;
    color: #fff;
    font-weight: 700;
}

.lwpe-total-box {
    margin-top: 12px;
    padding: 12px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 10px;
    display: grid;
    gap: 5px;
}

.lwpe-grand-total {
    padding-top: 6px;
    margin-top: 4px;
    border-top: 1px solid #ccc;
    font-size: 15px;
}

/* Hide duplicated Woo/brand text if the theme or product meta outputs it twice */
.single-product .product_meta .posted_in + .tagged_as {
    margin-top: 4px;
}

/* Hide raw image title/caption text that appears under product gallery images */
.single-product .woocommerce-product-gallery__image figcaption,
.single-product .woocommerce-product-gallery figcaption,
.single-product .woocommerce-product-gallery__image .wp-caption-text,
.single-product .woocommerce-product-gallery .wp-caption-text {
    display: none !important;
}

/* Some themes render image title text as plain links/spans below thumbnails */
.single-product .woocommerce-product-gallery__image > a + br,
.single-product .woocommerce-product-gallery__image > a + span,
.single-product .woocommerce-product-gallery__image > a + div:not(.zoomImg) {
    display: none !important;
}

/* Make Lilly White brand display compact and avoid duplicate-looking spacing */
.lwpe-brand {
    margin: 8px 0 14px;
}

.lwpe-brand + .lwpe-brand {
    display: none !important;
}

/* Hide short description/excerpt in top product summary only.
   Full Description tab remains visible. */
.single-product .summary .woocommerce-product-details__short-description,
.single-product .entry-summary .woocommerce-product-details__short-description,
.single-product .wp-block-post-excerpt,
.single-product .wp-block-woocommerce-product-summary .woocommerce-product-details__short-description {
    display: none !important;
}

/* =========================================================
   Lilly White Premium Branding Selector UI
   ========================================================= */

.lwpe-branding-choice {
    border: 1px solid #e5e1d8 !important;
    border-radius: 18px !important;
    padding: 20px !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%) !important;
    box-shadow: 0 10px 28px rgba(0,0,0,0.045) !important;
    margin: 22px 0 !important;
}

.lwpe-branding-choice h4 {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 0 14px !important;
    letter-spacing: -0.02em;
}

.lwpe-toggle-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
}

.lwpe-toggle {
    border: 1px solid #d8d3c8 !important;
    background: #fff !important;
    color: #111 !important;
    border-radius: 16px !important;
    padding: 14px 16px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    min-height: 54px !important;
    transition: all 0.18s ease !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.035) !important;
}

.lwpe-toggle:hover {
    border-color: #111 !important;
    transform: translateY(-1px);
}

.lwpe-toggle.is-active {
    background: #111 !important;
    color: #fff !important;
    border-color: #111 !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12) !important;
}

.lwpe-branding-panel {
    border-top: 1px solid #ece7df;
    padding-top: 18px;
}

.lwpe-branding-intro strong {
    display: block;
    font-size: 18px;
    margin-bottom: 6px;
}

.lwpe-branding-intro p {
    color: #333;
    line-height: 1.45;
}

.lwpe-branding-note {
    color: #6a6258 !important;
    background: #f7f2e8;
    border: 1px solid #eadfcd;
    border-radius: 12px;
    padding: 10px 12px;
    margin-top: 10px !important;
}

.lwpe-branding-positions {
    gap: 14px !important;
}

.lwpe-branding-position {
    border: 1px solid #e2ded6 !important;
    background: #fff !important;
    border-radius: 16px !important;
    padding: 15px !important;
    box-shadow: 0 5px 16px rgba(0,0,0,0.035);
    transition: all 0.18s ease;
}

.lwpe-branding-position:hover {
    border-color: #bfb6a6 !important;
}

.lwpe-branding-position.is-selected {
    border-color: #111 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.075);
}

.lwpe-position-check {
    gap: 12px !important;
}

.lwpe-position-check input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: #111;
}

.lwpe-position-title {
    font-size: 15px !important;
    font-weight: 700 !important;
}

.lwpe-position-size {
    color: #746c61 !important;
    font-size: 12px !important;
    margin-left: 30px;
}

.lwpe-method-wrap {
    margin-top: 14px !important;
    margin-left: 30px;
}

.lwpe-branding-method {
    border: 1px solid #d5cec2 !important;
    border-radius: 12px !important;
    padding: 12px !important;
    font-weight: 600;
    background: #fff !important;
    min-height: 48px;
}

.lwpe-branding-method:focus {
    outline: none !important;
    border-color: #111 !important;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

.lwpe-branding-summary {
    margin-top: 18px !important;
}

.lwpe-branding-summary > strong {
    display: block;
    font-size: 16px;
    margin-bottom: 10px;
}

.lwpe-branding-cost-table {
    border-radius: 14px !important;
    border-color: #e3ded5 !important;
}

.lwpe-cost-head {
    background: #111 !important;
    color: #fff !important;
}

.lwpe-cost-row {
    grid-template-columns: 1.1fr 1.7fr 0.8fr 0.8fr 0.8fr !important;
    align-items: start;
    padding: 11px 12px !important;
}

.lwpe-cost-row small {
    display: block;
    color: #6d655c;
    font-size: 11px;
    line-height: 1.35;
    margin-top: 2px;
}

.lwpe-total-box {
    border-radius: 14px !important;
    background: #fbfaf7 !important;
    border-color: #e4ded3 !important;
    padding: 14px !important;
}

.lwpe-grand-total {
    font-size: 16px !important;
}

.lwpe-branding-warning {
    border-radius: 12px !important;
}

/* Premium colour/size selector polish */
.lwpe-swatches,
.lwpe-size-buttons {
    gap: 10px !important;
}

.lwpe-size-button {
    border-radius: 12px !important;
    min-width: 46px !important;
    min-height: 42px !important;
    font-weight: 700 !important;
    border: 1px solid #d6d0c6 !important;
    background: #fff !important;
}

.lwpe-size-button.is-active {
    background: #111 !important;
    color: #fff !important;
    border-color: #111 !important;
}

.lwpe-swatch {
    border-color: #d1cbc1 !important;
}

.lwpe-swatch.is-active {
    outline: 3px solid #111 !important;
    outline-offset: 3px !important;
}

/* Mobile/tablet cleanup */
@media (max-width: 768px) {
    .lwpe-toggle-row {
        grid-template-columns: 1fr !important;
    }

    .lwpe-cost-row {
        grid-template-columns: 1fr !important;
        gap: 3px !important;
    }

    .lwpe-cost-head {
        display: none !important;
    }

    .lwpe-method-wrap,
    .lwpe-position-size {
        margin-left: 0 !important;
    }
}

/* =========================================================
   Compact premium branding selector
   ========================================================= */

.lwpe-branding-choice {
    padding: 14px !important;
    border-radius: 14px !important;
    margin: 14px 0 !important;
}

.lwpe-branding-choice h4 {
    font-size: 16px !important;
    margin-bottom: 10px !important;
}

.lwpe-toggle-row {
    gap: 8px !important;
    margin-bottom: 10px !important;
}

.lwpe-toggle {
    min-height: 42px !important;
    padding: 9px 12px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
}

.lwpe-branding-panel {
    padding-top: 12px !important;
}

.lwpe-branding-intro strong {
    font-size: 15px !important;
}

.lwpe-branding-intro p {
    font-size: 13px !important;
    margin: 4px 0 !important;
}

.lwpe-branding-note {
    font-size: 12px !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
}

.lwpe-branding-positions {
    gap: 8px !important;
    margin-top: 10px !important;
}

.lwpe-branding-position {
    padding: 10px 12px !important;
    border-radius: 12px !important;
}

.lwpe-position-check {
    gap: 8px !important;
}

.lwpe-position-check input[type="checkbox"] {
    width: 15px !important;
    height: 15px !important;
}

.lwpe-position-title {
    font-size: 13px !important;
}

.lwpe-position-size {
    font-size: 11px !important;
    margin-top: 3px !important;
    margin-left: 24px !important;
}

.lwpe-method-wrap {
    margin-top: 8px !important;
    margin-left: 24px !important;
}

.lwpe-branding-method {
    min-height: 38px !important;
    padding: 8px 10px !important;
    border-radius: 9px !important;
    font-size: 13px !important;
}

.lwpe-branding-summary {
    margin-top: 12px !important;
    font-size: 12px !important;
}

.lwpe-branding-summary > strong {
    font-size: 14px !important;
    margin-bottom: 6px !important;
}

.lwpe-cost-row {
    padding: 7px 9px !important;
    font-size: 11px !important;
    gap: 6px !important;
}

.lwpe-cost-row small {
    font-size: 10px !important;
}

.lwpe-total-box {
    padding: 9px 10px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
}

.lwpe-grand-total {
    font-size: 14px !important;
}

/* Make estimated total stand out clearly for customer */
.lwpe-grand-total {
    margin-top: 8px !important;
    padding: 12px 14px !important;
    background: #111 !important;
    color: #fff !important;
    border-radius: 12px !important;
    font-size: 18px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.lwpe-grand-total strong {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #fff !important;
}

/* =========================================================
   Bulk Quote / Multi-size Matrix
   ========================================================= */

.lwpe-bulk-quote {
    margin: 16px 0;
    border: 1px solid #e5e1d8;
    border-radius: 14px;
    background: #fff;
    padding: 12px;
}

.lwpe-bulk-toggle {
    width: 100%;
    border: 1px solid #111 !important;
    background: #fff !important;
    color: #111 !important;
    border-radius: 999px !important;
    padding: 10px 14px !important;
    font-weight: 800 !important;
    cursor: pointer;
}

.lwpe-bulk-toggle:hover {
    background: #111 !important;
    color: #fff !important;
}

.lwpe-bulk-panel {
    padding-top: 14px;
}

.lwpe-bulk-panel h4 {
    margin: 0 0 6px;
    font-size: 16px;
}

.lwpe-bulk-note,
.lwpe-bulk-empty,
.lwpe-bulk-branding-note {
    font-size: 12px;
    color: #665f55;
}

.lwpe-bulk-table-wrap {
    overflow-x: auto;
    margin-top: 12px;
    border: 1px solid #e5e1d8;
    border-radius: 12px;
}

.lwpe-bulk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    background: #fff;
}

.lwpe-bulk-table th,
.lwpe-bulk-table td {
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    padding: 8px;
    text-align: center;
    vertical-align: top;
}

.lwpe-bulk-table th {
    background: #fbfaf7;
    font-weight: 800;
}

.lwpe-bulk-table tbody th {
    text-align: left;
    white-space: nowrap;
}

.lwpe-bulk-table td.is-empty {
    color: #bbb;
    background: #fafafa;
}

.lwpe-bulk-qty {
    width: 64px;
    min-height: 34px;
    text-align: center;
    border: 1px solid #d5cec2;
    border-radius: 8px;
    padding: 5px;
}

.lwpe-bulk-table small {
    display: block;
    font-size: 10px;
    color: #777;
    margin-top: 3px;
}

.lwpe-bulk-total-box {
    margin-top: 12px;
    border: 1px solid #e5e1d8;
    border-radius: 12px;
    background: #fbfaf7;
    padding: 10px;
    display: grid;
    gap: 4px;
}

.lwpe-bulk-submit {
    margin-top: 12px !important;
    width: 100%;
    border-radius: 999px !important;
    padding: 10px 14px !important;
    font-weight: 800 !important;
}

.lwpe-bulk-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Cart quote request */
.lwpe-cart-quote-box {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #e5e1d8;
    border-radius: 12px;
    background: #fbfaf7;
}

.lwpe-request-quote-button {
    width: 100%;
    background: #111 !important;
    color: #fff !important;
    border-radius: 999px !important;
    font-weight: 800 !important;
    padding: 12px 16px !important;
}

.lwpe-cart-quote-note {
    font-size: 12px;
    margin: 8px 0 0;
    color: #665f55;
}

.lwpe-quote-success {
    margin-top: 10px;
    padding: 10px;
    border-radius: 10px;
    background: #eef8ee;
    border: 1px solid #b9ddb9;
    color: #1f5f1f;
    font-size: 13px;
}

/* Quote request customer fields */
.lwpe-quote-title {
    margin: 0 0 8px;
    font-size: 18px;
}

.lwpe-quote-fields {
    display: grid;
    gap: 8px;
    margin: 12px 0;
}

.lwpe-quote-field {
    width: 100%;
    border: 1px solid #d5cec2;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    background: #fff;
}

textarea.lwpe-quote-field {
    min-height: 88px;
    resize: vertical;
}

/* Guest price/login gate */
.lwpe-login-price-box,
.lwpe-guest-product-lock {
    border: 1px solid #e5e1d8;
    border-radius: 14px;
    background: #fbfaf7;
    padding: 14px;
    margin: 14px 0;
}

.lwpe-login-price-box strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.lwpe-login-price-box p {
    margin: 0 0 10px;
    font-size: 13px;
    color: #665f55;
}

.lwpe-login-price-button {
    width: 100%;
    text-align: center;
    border-radius: 999px !important;
    background: #111 !important;
    color: #fff !important;
    font-weight: 800 !important;
    padding: 10px 14px !important;
}

.lwpe-quote-field[type="file"] {
    padding: 9px;
    background: #fff;
}

.lwpe-quote-fields select.lwpe-quote-field {
    cursor: pointer;
}

/* Artwork fee notice */
.lwpe-artwork-fee-notice {
    border: 1px solid #eadfcd;
    background: #fff8ea;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    color: #5f4a1f;
}

.lwpe-artwork-fee-notice strong {
    color: #111;
}

.lwpe-artwork-fee-notice span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
}

/* My Account quote history */
.lwpe-my-quotes-table th,
.lwpe-my-quotes-table td {
    vertical-align: middle;
}

.lwpe-my-quotes-table td:first-child {
    font-weight: 800;
}

/* My Account quote detail */
.lwpe-my-quote-detail-box {
    border: 1px solid #e5e1d8;
    border-radius: 14px;
    background: #fbfaf7;
    padding: 14px;
    margin: 14px 0;
}

.lwpe-my-quote-detail-box h4 {
    margin: 0 0 8px;
}

.lwpe-my-quote-total {
    font-size: 18px;
}

.lwpe-view-quote-button {
    margin-top: 6px !important;
    padding: 5px 10px !important;
    font-size: 12px !important;
    border-radius: 999px !important;
}

/* My Account quote detail */
.lwpe-my-quote-detail-box {
    border: 1px solid #e5e1d8;
    border-radius: 14px;
    background: #fbfaf7;
    padding: 14px;
    margin: 14px 0;
}

.lwpe-my-quote-detail-box h4 {
    margin: 0 0 8px;
}

.lwpe-my-quote-total {
    font-size: 18px;
}

.lwpe-view-quote-button {
    margin-top: 6px !important;
    padding: 5px 10px !important;
    font-size: 12px !important;
    border-radius: 999px !important;
}

/* Admin quote actions */
.lwpe-admin-actions-box h4 {
    margin: 14px 0 6px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #555;
}

.lwpe-admin-action-row .button {
    margin: 0 6px 6px 0;
}

/* Registration marketing opt-in */
.lwpe-marketing-opt-in {
    margin-top: 12px;
}

.lwpe-marketing-opt-in span {
    font-size: 14px;
}

/* Brand and branding guide display */
.lwpe-brand-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 14px;
}

.lwpe-brand-logo {
    max-width: 90px;
    max-height: 44px;
    object-fit: contain;
}

.lwpe-brand-name {
    font-weight: 700;
}

.lwpe-branding-guides-box {
    margin: 18px 0;
    padding: 14px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fafafa;
}

.lwpe-branding-guides-box h4 {
    margin: 0 0 8px;
}

.lwpe-branding-guide-button {
    margin-top: 4px;
}

/* Hide tiny duplicate brand logo from theme/brand taxonomy output on product summary */
.single-product .summary .product-brands img,
.single-product .summary .wc-brand img,
.single-product .summary .yith-wcbr-brands img,
.single-product .summary .pwb-single-product-brands img,
.single-product .summary img[src*="Amrod_Drupal8logo"] {
    display: none !important;
}
