/* Contenedor principal */
.pv-visualizer-root {
    max-width: 1000px;
    margin: 0 auto;
    font-family: inherit;
}

.pv-loading {
    text-align: center;
    padding: 20px;
}

.pv-visualizer {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Barra de estancias */
.pv-rooms-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.pv-room-thumb {
    width: 100px;
    flex: 0 0 auto;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    background: #f7f7f7;
    text-align: center;
    font-size: 11px;
}

.pv-room-thumb--active {
    border-color: #e53935;
}

.pv-room-thumb-img {
    width: 100%;
    height: 60px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #ddd;
}

.pv-room-thumb-placeholder {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ddd;
    color: #333;
}

.pv-room-thumb-title {
    padding: 2px 4px 4px;
}

/* Preview de estancia */
.pv-preview-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60%;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

.pv-preview-bg {
    position: absolute;
    inset: 0;
    background-color: #ffffff;
}

.pv-preview-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

/* Grupos de color */
.pv-groups-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pv-group-btn {
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.3);
    transition: transform .1s ease, box-shadow .1s ease, opacity .1s ease;
    opacity: .9;
}

.pv-group-btn--active,
.pv-group-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,.2);
    opacity: 1;
}

/* Colores */
.pv-colors-wrapper {
    max-height: 220px;
    overflow-y: auto;
    border-radius: 4px;
    border: 1px solid #eee;
    padding: 8px;
}

.pv-colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.pv-color-item {
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
    cursor: pointer;
    background: #fff;
    transition: box-shadow .1s ease, transform .1s ease;
}

.pv-color-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.pv-color-swatch {
    width: 100%;
    height: 40px;
}

.pv-color-label {
    padding: 4px 6px;
    font-size: 12px;
    text-align: center;
}

/* Info color */
.pv-color-info {
    font-size: 14px;
    font-weight: 500;
}

/* Presentaciones (radios) */
.pv-finish-wrapper {
    border-radius: 4px;
    border: 1px solid #eee;
    padding: 8px 10px;
    background: #fafafa;
    font-size: 13px;
}

.pv-finish-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.pv-finish-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

.pv-finish-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.pv-finish-description {
    font-style: italic;
    color: #555;
}

/* Botones */
.pv-want-color-btn,
.pv-whatsapp-btn {
    border: none;
    border-radius: 4px;
    color: #fff;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    transition: background .1s ease, box-shadow .1s ease, transform .1s ease;
}

/* Estilo base (se puede sobreescribir) */
.pv-want-color-btn {
    background-color: #e53935;
}

.pv-whatsapp-btn {
    background-color: #25d366;
}

.pv-want-color-btn:hover,
.pv-whatsapp-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,.2);
}

.pv-calculator {
    border-radius: 4px;
    border: 1px solid #eee;
    padding: 10px;
    background: #fafafa;
    font-size: 14px;
}

.pv-calculator-row {
    margin-bottom: 8px;
}

.pv-calculator-row label {
    display: block;
    margin-bottom: 4px;
}

.pv-gallons-input {
    width: 100px;
}

.pv-price-row {
    font-weight: 600;
}

.pv-unsure-row label {
    font-weight: 400;
}

.pv-whatsapp-label {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
    .pv-preview-wrapper {
        padding-top: 80%;
    }
}
