.jcbike-widget-root {
    max-width: 560px;
    margin: 0 auto;
    font-family: inherit;
}
.jcbike-widget {
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 20px;
}
.jcbike-field {
    margin-bottom: 16px;
}
.jcbike-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
}
.jcbike-value {
    color: #c0392b;
    font-weight: 700;
}
.jcbike-field input[type="range"] {
    width: 100%;
}
.jcbike-select {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
}
.jcbike-btn-group {
    display: flex;
    gap: 8px;
}
.jcbike-btn {
    flex: 1;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: all .15s ease;
}
.jcbike-gender-btn.active {
    background: #2c3e50;
    border-color: #2c3e50;
    color: #fff;
}
.jcbike-help-link {
    font-weight: 400;
    font-size: 12px;
    margin-left: 6px;
}
.jcbike-help-text {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
}
.jcbike-canvas-wrap {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    padding: 8px;
    margin: 14px 0;
}
.jcbike-scene {
    display: flex;
    align-items: flex-end;
    gap: 4px;
}
.jcbike-human-slot {
    flex: 0 0 26%;
    max-width: 26%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.jcbike-bike-slot {
    flex: 1 1 74%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.jcbike-slot-svg {
    width: 100%;
    height: auto;
    display: block;
}
.jcbike-slot-photo {
    max-width: 100%;
    max-height: 260px;
    object-fit: contain;
    display: block;
}
.jcbike-result-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: #fff;
    border: 2px solid #2c3e50;
    border-radius: 8px;
    padding: 14px 16px;
}
.jcbike-result-label {
    font-size: 13px;
    color: #666;
    width: 100%;
}
.jcbike-result-size {
    font-size: 30px;
    font-weight: 800;
    color: #c0392b;
    line-height: 1;
}
.jcbike-result-numeric {
    color: #555;
    font-size: 14px;
}
.jcbike-result-loading {
    font-size: 13px;
    color: #888;
    padding: 10px 0;
}
.jcbike-error {
    color: #c0392b;
    font-size: 13px;
}
.jcbike-btn-primary {
    margin-left: auto;
    background: #2c3e50;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}
.jcbike-btn-primary:hover {
    background: #1a252f;
}

/* Carrusel de bicis sugeridas */
.jcbike-carousel-wrap {
    margin-top: 16px;
}
.jcbike-carousel-title {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}
.jcbike-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}
.jcbike-carousel-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 8px;
    flex: 1;
    -ms-overflow-style: none;
    scrollbar-width: thin;
}
.jcbike-carousel-card {
    flex: 0 0 auto;
    width: 132px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    transition: box-shadow .15s ease, transform .15s ease;
}
.jcbike-carousel-card:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,.1);
    transform: translateY(-2px);
}
.jcbike-carousel-img {
    width: 100%;
    height: 100px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fafafa;
}
.jcbike-carousel-name {
    font-size: 12px;
    color: #333;
    padding: 6px 8px 0;
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
}
.jcbike-carousel-price {
    font-size: 13px;
    font-weight: 700;
    color: #c0392b;
    padding: 2px 8px 8px;
}
.jcbike-carousel-nav {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: #333;
}
.jcbike-carousel-nav:hover {
    background: #f2f2f2;
}
.jcbike-carousel-viewall {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: #2c3e50;
    font-weight: 600;
    text-decoration: none;
}
.jcbike-carousel-viewall:hover {
    text-decoration: underline;
}
.jcbike-viewall-standalone {
    margin-top: 12px;
}
.jcbike-human-carousel .jcbike-carousel-card.jcbike-photo-card {
    width: 90px;
}
.jcbike-human-carousel .jcbike-carousel-img {
    height: 90px;
    background-size: cover;
    border-radius: 50%;
}
.jcbike-human-carousel .jcbike-carousel-card {
    border: none;
    background: transparent;
}

/* Página independiente */
.jcbike-standalone-page h1 {
    margin-bottom: 6px;
}
.jcbike-standalone-page .jcbike-intro {
    color: #666;
    margin-bottom: 24px;
}

/* Widget dentro de la ficha de producto */
.jcbike-product-block {
    margin-top: 24px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}
.jcbike-product-block > h3 {
    margin-bottom: 10px;
}

/* Enlace compacto "Guía de tallas" (sustituye al bloque fijo en la ficha de producto) */
.jcbike-product-trigger {
    margin: 14px 0;
}
.jcbike-guide-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 14px;
    transition: border-color .15s ease, background .15s ease;
}
.jcbike-guide-link:hover {
    border-color: #2c3e50;
    background: #f8f8f8;
    color: #2c3e50;
    text-decoration: none;
}
.jcbike-guide-link .material-icons {
    font-size: 18px;
}
.jcbike-guide-link span {
    text-decoration: underline;
}
.jcbike-trigger-inline {
    margin: 10px 0 18px;
}
.jcbike-size-modal .modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}
.jcbike-size-modal .modal-body {
    padding: 20px;
}
.jcbike-size-modal .jcbike-widget-root {
    max-width: 100%;
}
