body#module-vivacartonamedida-configurator {
    --vbc-red: #d52229;
    --vbc-red-dark: #b81c22;
    --vbc-text: #151923;
    --vbc-copy: #4b5563;
    --vbc-muted: #7a8291;
    --vbc-line: #ece8e3;
    --vbc-field: #e3e5e8;
    --vbc-brown: #8a633c;
    --vbc-brown-text: #9a4a22;
    --vbc-soft: #faf7f3;
    --vbc-radius: 8px;
}

body#module-vivacartonamedida-configurator #wrapper {
    padding-top: 0;
    background: #fff;
}

body#module-vivacartonamedida-configurator .breadcrumb {
    margin: 0 !important;
    padding: 14px 0 12px !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

body#module-vivacartonamedida-configurator .breadcrumb .row,
body#module-vivacartonamedida-configurator .breadcrumb .col {
    margin: 0 !important;
    padding: 0 !important;
}

body#module-vivacartonamedida-configurator .breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
}

body#module-vivacartonamedida-configurator .breadcrumb li {
    color: var(--vbc-text) !important;
    font-size: 12px !important;
}

body#module-vivacartonamedida-configurator .breadcrumb li::after {
    content: none !important;
    display: none !important;
}

body#module-vivacartonamedida-configurator .breadcrumb li + li::before {
    content: '›' !important;
    display: inline-block;
    margin: 0 8px !important;
    color: #b3b6bc !important;
}

body#module-vivacartonamedida-configurator .breadcrumb a,
body#module-vivacartonamedida-configurator .breadcrumb span {
    color: inherit !important;
    text-decoration: none !important;
}

body#module-vivacartonamedida-configurator .breadcrumb a:hover {
    color: var(--vbc-red) !important;
}

body#module-vivacartonamedida-configurator .page-header {
    display: none;
}

body#module-vivacartonamedida-configurator #content.page-content {
    margin-bottom: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.vbc {
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
    padding: 20px 0 56px;
    color: var(--vbc-text);
    font-size: 14px;
    line-height: 1.45;
}

.vbc *,
.vbc *::before,
.vbc *::after {
    box-sizing: border-box;
}

.vbc svg {
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Cabecera */

.vbc-hero {
    margin-bottom: 26px;
}

.vbc-title {
    margin: 0 0 8px;
    color: var(--vbc-text);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-transform: none;
}

.vbc-subtitle {
    margin: 0 0 16px;
    color: var(--vbc-muted);
    font-size: 14px;
}

.vbc-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vbc-badges li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #5c4230;
    font-size: 13px;
    font-weight: 500;
}

.vbc-badges svg {
    width: 15px;
    height: 15px;
    color: var(--vbc-brown);
}

.vbc-notice {
    margin-top: 18px;
    padding: 12px 16px;
    border: 1px solid #f3d2b0;
    border-radius: var(--vbc-radius);
    background: #fff7ed;
    color: #7a3f12;
    font-size: 13px;
}

.vbc-notice > :last-child {
    margin-bottom: 0;
}

/* Pasos */

.vbc-steps {
    margin: 0 0 26px;
}

.vbc-steps ol {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vbc-steps li {
    display: flex;
    align-items: center;
    gap: 16px;
}

.vbc-steps li + li::before {
    content: '';
    width: 40px;
    height: 1px;
    background: #d6d9de;
}

.vbc-steps a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--vbc-copy);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.vbc-steps a:hover,
.vbc-steps a:focus {
    color: var(--vbc-text);
    text-decoration: none;
}

.vbc-steps__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #8b919c;
    font-size: 11px;
    font-weight: 700;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.vbc-steps a.is-current .vbc-steps__num {
    background: #fff;
    color: var(--vbc-red);
    box-shadow: inset 0 0 0 2px var(--vbc-red);
}

.vbc-steps a.is-current {
    color: var(--vbc-text);
}

.vbc-steps a.is-done .vbc-steps__num {
    background: var(--vbc-red);
    color: #fff;
}

/* Distribución */

.vbc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: 28px;
    align-items: start;
}

.vbc-main {
    display: grid;
    gap: 22px;
    min-width: 0;
}

/* Tarjetas */

.vbc-card {
    padding: 22px 20px;
    border: 1px solid var(--vbc-line);
    border-radius: var(--vbc-radius);
    background: #fff;
    scroll-margin-top: 110px;
}

.vbc-card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    color: var(--vbc-text);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
}

.vbc-card__num {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--vbc-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.vbc-card__intro {
    margin: 0 0 14px;
    color: var(--vbc-muted);
    font-size: 13px;
}

/* Opciones */

.vbc-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.vbc-option {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--vbc-field);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.vbc-option:hover {
    border-color: #c9cdd3;
}

.vbc-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.vbc-option.is-selected {
    border-color: var(--vbc-red);
    box-shadow: inset 0 0 0 1px var(--vbc-red);
}

.vbc-option:focus-within {
    outline: 2px solid rgba(213, 34, 41, 0.25);
    outline-offset: 2px;
}

.vbc-option.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vbc-option__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vbc-option__icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.vbc-option__name {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    color: var(--vbc-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
}

.vbc-option__name small {
    margin-top: 2px;
    color: var(--vbc-muted);
    font-size: 12px;
    font-weight: 400;
}

.vbc-option__radio {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    border: 1.5px solid #c9cdd3;
    border-radius: 50%;
    background: #fff;
    transition: border 0.2s;
}

.vbc-option.is-selected .vbc-option__radio {
    border: 4px solid var(--vbc-red);
}

.vbc-option__desc {
    color: var(--vbc-copy);
    font-size: 13px;
    line-height: 1.4;
}

.vbc-swatch {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.vbc-swatch--kraft {
    background: linear-gradient(135deg, #c98b55, #b8763f);
}

.vbc-swatch--white {
    border: 1px solid var(--vbc-field);
    background: linear-gradient(135deg, #ffffff, #f1f0ed);
}

.vbc-field-note {
    margin: 12px 0 0;
    color: var(--vbc-brown-text);
    font-size: 12px;
}

/* Medidas */

.vbc-limits {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 18px;
    padding: 14px 18px;
    border: 1px solid var(--vbc-line);
    border-radius: 6px;
    background: #fff;
}

.vbc-limits__img {
    flex: 0 0 auto;
    width: 150px;
    height: auto;
}

.vbc-limits__text {
    color: var(--vbc-brown-text);
    font-size: 12px;
    line-height: 1.6;
}

.vbc-limits__text strong {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.vbc-limits__text ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.vbc-limits__text li::before {
    content: '•';
    margin-right: 6px;
}

.vbc-dims {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.vbc-field label {
    display: block;
    margin: 0 0 6px;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
}

.vbc-stepper {
    display: flex;
    align-items: center;
    height: 40px;
    border: 1px solid var(--vbc-field);
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.vbc-stepper:focus-within {
    border-color: #9ca3af;
}

.vbc-stepper.is-invalid {
    border-color: var(--vbc-red);
    box-shadow: 0 0 0 1px var(--vbc-red);
}

.vbc-stepper button {
    flex: 0 0 40px;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--vbc-copy);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.vbc-stepper button:hover {
    color: var(--vbc-red);
}

.vbc-stepper input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: var(--vbc-text);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    box-shadow: none;
}

.vbc-stepper input:focus {
    outline: 0;
}

.vbc-stepper input::placeholder {
    color: #b8bcc3;
    font-weight: 400;
}

.vbc-errors {
    margin-top: 14px;
    padding: 10px 14px;
    border: 1px solid #f6c8ca;
    border-radius: 6px;
    background: #fff5f5;
    color: var(--vbc-red-dark);
    font-size: 13px;
}

.vbc-errors ul {
    margin: 0;
    padding-left: 18px;
}

.vbc-help {
    margin: 14px 0 0;
    color: var(--vbc-muted);
    font-size: 12px;
}

.vbc-help a {
    color: var(--vbc-text);
    font-weight: 600;
}

.vbc-qty-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.vbc-qty-row .vbc-stepper {
    width: 190px;
}

.vbc-qty-min {
    color: var(--vbc-muted);
    font-size: 13px;
}

/* Más de la cantidad máxima online: pedir presupuesto */
.vbc-quote-note {
    margin-top: 12px;
    padding: 10px 14px;
    border: 1px solid #f7d9bf;
    border-radius: 6px;
    background: #fff4ea;
    color: #9a4d12;
    font-size: 13px;
    line-height: 1.45;
}

.vbc-quote-note[hidden] {
    display: none;
}

.vbc-quote-note a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

/* Resumen lateral */

.vbc-aside {
    position: sticky;
    top: 64px;
    display: grid;
    gap: 12px;
}

.vbc-summary {
    padding: 18px 20px 16px;
    border: 1px solid var(--vbc-line);
    border-radius: var(--vbc-radius);
    background: #fff;
}

.vbc-summary__eyebrow {
    display: block;
    color: var(--vbc-muted);
    font-size: 13px;
    font-weight: 500;
}

.vbc-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 170px;
    margin: 12px 0 4px;
}

.vbc-preview svg {
    width: 100%;
    max-width: 200px;
    height: 100%;
    stroke: none;
    filter: drop-shadow(0 10px 14px rgba(80, 52, 22, 0.12));
}

.vbc-preview__dims {
    margin: 0 0 18px;
    color: var(--vbc-brown);
    font-size: 12px;
    text-align: center;
}

.vbc-summary__title {
    margin: 0 0 10px;
    color: var(--vbc-text);
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
}

.vbc-summary__list {
    display: grid;
    gap: 7px;
    margin: 0 0 18px;
}

.vbc-summary__list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.vbc-summary__list dt {
    color: var(--vbc-muted);
    font-weight: 400;
}

.vbc-summary__list dd {
    margin: 0;
    color: var(--vbc-text);
    font-weight: 600;
    text-align: right;
}

.vbc-summary__list .vbc-summary__dims {
    display: none;
}

.vbc-price {
    margin: 0 0 14px;
    padding: 14px;
    border-radius: 6px;
    background: var(--vbc-soft);
}

.vbc-price__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    color: var(--vbc-copy);
    font-size: 13px;
}

.vbc-price__row strong {
    color: var(--vbc-text);
    font-size: 15px;
}

.vbc-price__row--total {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--vbc-line);
}

.vbc-price__row--total span {
    color: var(--vbc-text);
    font-weight: 600;
}

.vbc-price__row--total strong {
    color: var(--vbc-red);
    font-size: 22px;
    font-weight: 700;
}

.vbc-price__note {
    margin: 6px 0 0;
    color: var(--vbc-muted);
    font-size: 11px;
    text-align: right;
}

.vbc-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0 0 12px;
    color: var(--vbc-red);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.vbc-status svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.4;
}

.vbc-status.is-loading {
    color: var(--vbc-muted);
}

.vbc-status.is-loading svg {
    display: none;
}

.vbc-status.is-ready,
.vbc-status.is-added {
    color: #15935c;
}

.vbc-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #e9ebee;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    cursor: not-allowed;
    transition: background-color 0.2s, color 0.2s;
}

.vbc-cta svg {
    width: 17px;
    height: 17px;
}

.vbc-cta.is-ready {
    background: var(--vbc-red);
    color: #fff;
    cursor: pointer;
}

.vbc-cta.is-ready:hover {
    background: var(--vbc-red-dark);
}

.vbc-cta.is-ready:disabled {
    opacity: 0.75;
    cursor: wait;
}

.vbc-success {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #bfe5d1;
    border-radius: 6px;
    background: #f0faf5;
    color: #0f6b43;
    font-size: 13px;
    text-align: center;
}

.vbc-success__actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.vbc-success__actions a {
    flex: 1 1 0;
    padding: 8px 10px;
    border: 1px solid var(--vbc-field);
    border-radius: 999px;
    background: #fff;
    color: var(--vbc-text);
    font-weight: 600;
    text-decoration: none;
}

.vbc-success__actions a.vbc-success__primary {
    border-color: var(--vbc-text);
    background: var(--vbc-text);
    color: #fff;
}

.vbc-mini {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.vbc-mini li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--vbc-muted);
    font-size: 11px;
}

.vbc-mini svg {
    width: 12px;
    height: 12px;
}

.vbc-similar {
    padding: 0 4px;
}

.vbc-similar__toggle {
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: var(--vbc-copy);
    font-size: 12px;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.vbc-similar__toggle:hover {
    color: var(--vbc-red);
}

.vbc-similar__results {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.vbc-similar__results:empty {
    display: none;
}

.vbc-similar__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--vbc-line);
    border-radius: 6px;
    background: #fff;
    color: var(--vbc-text);
    text-decoration: none;
}

.vbc-similar__item img,
.vbc-similar__item > span:first-child {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.vbc-similar__item strong {
    display: block;
    font-size: 12px;
    line-height: 1.3;
}

.vbc-similar__item small {
    color: var(--vbc-muted);
    font-size: 11px;
}

.vbc-similar__empty {
    margin: 0;
    color: var(--vbc-muted);
    font-size: 12px;
    text-align: center;
}

/* Preguntas frecuentes */

.vbc-faq {
    max-width: 1000px;
    margin: 56px auto 0;
    padding: 0 20px;
}

.vbc-faq__title {
    margin: 0 0 18px;
    color: var(--vbc-text);
    font-size: 26px;
    font-weight: 700;
    text-transform: none;
}

.vbc-faq__item {
    border-bottom: 1px solid #e5e7eb;
}

.vbc-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 0;
    color: var(--vbc-text);
    font-size: 15px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.vbc-faq__item summary::-webkit-details-marker {
    display: none;
}

.vbc-faq__item summary::after {
    content: '';
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin-right: 4px;
    border-right: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s;
}

.vbc-faq__item[open] summary::after {
    transform: translateY(2px) rotate(-135deg);
}

.vbc-faq__answer {
    padding: 0 30px 16px 0;
    color: var(--vbc-copy);
    font-size: 14px;
}

.vbc-faq__answer p {
    margin: 0;
}

/* Texto informativo / SEO */

.vbc-seo {
    max-width: 1000px;
    margin: 44px auto 0;
    padding: 0 20px;
    color: var(--vbc-copy);
    font-size: 14px;
}

.vbc-seo h2,
.vbc-seo h3 {
    margin: 0 0 10px;
    color: var(--vbc-text);
    font-size: 18px;
    font-weight: 700;
    text-transform: none;
}

.vbc-seo p {
    margin: 0 0 10px;
}

/* Tablet */

@media (max-width: 991.98px) {
    body#module-vivacartonamedida-configurator .breadcrumb {
        padding-right: 6px !important;
        padding-left: 6px !important;
    }

    .vbc {
        padding-right: 16px;
        padding-left: 16px;
    }

    .vbc-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .vbc-aside {
        position: static;
    }
}

/* Móvil */

@media (max-width: 767.98px) {
    body#module-vivacartonamedida-configurator .breadcrumb {
        padding: 10px 6px !important;
    }

    .vbc {
        padding: 6px 16px 36px;
    }

    .vbc-hero {
        margin-bottom: 18px;
    }

    .vbc-title {
        font-size: 22px;
    }

    .vbc-subtitle {
        margin-bottom: 12px;
        font-size: 14px;
    }

    .vbc-badges {
        flex-direction: column;
        gap: 6px;
    }

    .vbc-badges li {
        font-size: 12px;
    }

    .vbc-steps {
        margin-bottom: 18px;
    }

    .vbc-steps ol {
        gap: 4px;
        justify-content: space-between;
    }

    .vbc-steps li {
        gap: 4px;
    }

    .vbc-steps li + li::before {
        display: none;
    }

    .vbc-steps a {
        gap: 5px;
        font-size: 12px;
    }

    .vbc-steps__num {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .vbc-layout,
    .vbc-main {
        gap: 16px;
    }

    .vbc-card {
        padding: 18px 14px;
    }

    .vbc-card__title {
        font-size: 16px;
    }

    .vbc-options,
    .vbc-dims {
        grid-template-columns: minmax(0, 1fr);
    }

    .vbc-limits {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 14px;
    }

    .vbc-limits__img {
        align-self: center;
        width: 140px;
    }

    .vbc-qty-row .vbc-stepper {
        width: 100%;
    }

    .vbc-summary {
        padding: 16px 14px;
    }

    .vbc-summary__eyebrow {
        font-size: 12px;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .vbc-preview {
        height: 130px;
    }

    .vbc-summary__list .vbc-summary__dim {
        display: none;
    }

    .vbc-summary__list .vbc-summary__dims {
        display: flex;
    }

    .vbc-faq {
        margin-top: 36px;
        padding: 0;
    }

    .vbc-faq__title {
        font-size: 22px;
    }

    .vbc-faq__item summary {
        font-size: 14px;
    }

    .vbc-seo {
        padding: 0;
    }
}


/* Etiquetas de producto en «medidas parecidas» */
.vbc-similar__stickers {
    margin-bottom: 4px;
}
