/**
 * Comparador de Sementes - Frontend Styles
 * 100% fiel ao design fornecido
 */

.comparador-sementes-wrapper {
    max-width: 1128px !important;
    /* Largura exata do Figma */
    width: 1128px !important;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-sizing: border-box;
}

/* Selection Interface */
.comparador-selection {
    margin-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
}

/* Container para híbridos - layout em colunas */
.comparador-hybrids-container {
    display: grid !important;
    grid-template-columns: repeat(3, 360px) !important;
    /* Cada coluna com 360px exatos */
    gap: 20px !important;
    margin: 0 0 30px 0 !important;
    width: 100% !important;
    max-width: 1128px !important;
    /* Largura total: 360px * 3 + 20px * 2 (gaps) = 1120px, mas container é 1128px */
    box-sizing: border-box !important;
    justify-content: start !important;
    align-items: start !important;
    /* Alinha os slots no topo */
}

.comparador-hybrid-slot {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    /* Remove gap para evitar espaços grandes */
    width: 360px !important;
    /* Largura exata do Figma */
    max-width: 360px !important;
    min-width: 360px !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
    /* Garante que os elementos filhos se estendam */
    min-height: 0 !important;
    /* Permite que o flexbox funcione corretamente */
}

.comparador-hybrid-slot>* {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.comparador-hybrid-slot>.comparador-hybrid-label {
    margin-bottom: 8px !important;
}

.comparador-hybrid-slot>.comparador-dropdown-wrapper {
    margin-bottom: 15px !important;
    margin-top: 0 !important;
}

.comparador-hybrid-slot>.comparador-product-card {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.comparador-hybrid-label {
    display: block;
    margin: 0 0 8px 0;
    padding: 0;
    font-family: "Stag Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #333;
    width: 100%;
    box-sizing: border-box;
    transition: opacity 0.3s ease;
    text-align: left !important;
}

.comparador-hybrid-slot.disabled-slot .comparador-hybrid-label {
    opacity: 0.5;
}

/* Garantir alinhamento perfeito entre dropdowns e cards */
.comparador-dropdowns,
.comparador-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0 0 30px 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

/* Filters Container */
.comparador-filters-container {
    display: grid !important;
    grid-template-columns: 360px calc(100% - 380px) !important;
    /* Cultura 360px, Estado preenche o resto (desconta 360px + 20px gap) */
    gap: 20px !important;
    margin: 0 0 30px 0 !important;
    width: 1120px !important;
    /* Mesma largura total dos híbridos: 360px * 3 + 20px * 2 */
    max-width: 1120px !important;
    box-sizing: border-box !important;
}

.comparador-filters-container.comparador-full-width {
    grid-template-columns: 1fr !important;
}

/* Estado Selector */
.comparador-estado-selector {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
}

.comparador-estado-selector label {
    display: block;
    margin: 0 0 10px 0;
    padding: 0;
    font-family: "Stag Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #333;
    width: 100%;
    box-sizing: border-box;
    text-align: left !important;
}

.comparador-estado-select {
    width: 100% !important;
    max-width: 100% !important;
    height: 40px !important;
    padding: 0 40px 0 15px;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    font-family: "Stag Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #333;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4 L6 8 L10 4' stroke='%23999' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    cursor: pointer;
    transition: border-color 0.3s;
    box-sizing: border-box !important;
    border-radius: 8px;
}

.comparador-estado-select:hover {
    border-color: #b0b0b0;
}

.comparador-estado-select:focus {
    outline: none;
    border-color: #5CB85C;
    box-shadow: 0 0 0 3px rgba(90, 184, 92, 0.1);
}

/* Cultura Selector */
.comparador-cultura-selector {
    width: 100%;
    max-width: 360px;
    /* Mesma largura dos híbridos */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.comparador-cultura-selector label {
    display: block;
    margin: 0 0 10px 0;
    padding: 0;
    font-family: "Stag Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #333;
    width: 100%;
    box-sizing: border-box;
    text-align: left !important;
}

.comparador-cultura-select {
    width: 100%;
    height: 40px !important;
    padding: 0 40px 0 15px;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    font-family: "Stag Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #333;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4 L6 8 L10 4' stroke='%23999' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    cursor: pointer;
    transition: border-color 0.3s;
    box-sizing: border-box !important;
    border-radius: 8px;
}

.comparador-cultura-select:hover:not(:disabled) {
    border-color: #b0b0b0;
}

.comparador-cultura-select:focus {
    outline: none;
    border-color: #5CB85C;
    box-shadow: 0 0 0 3px rgba(90, 184, 92, 0.1);
}

.comparador-cultura-select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border-color: #ddd;
}

.comparador-dropdown-wrapper {
    position: relative !important;
    width: 360px !important;
    /* Largura exata do Figma */
    max-width: 360px !important;
    min-width: 360px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    /* Evita que o dropdown encolha */
    background-color: #ffffff;
    /* Garante que o select fique dentro da caixa branca */
    border-radius: 4px;
}

/* Custom Select Styles */
.comparador-custom-select {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.comparador-select-input {
    width: 100%;
    height: 40px !important;
    padding: 0 40px 0 15px;
    /* Space for arrow */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    font-family: "Stag Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    /* For absolute arrow */
}

.comparador-select-input:hover {
    border-color: #b0b0b0;
}

.comparador-select-input:focus {
    outline: none;
    border-color: #5CB85C;
    box-shadow: 0 0 0 3px rgba(90, 184, 92, 0.1);
}

.comparador-custom-select.disabled .comparador-select-input {
    background-color: #f5f5f5 !important;
    cursor: not-allowed;
    border-color: #ddd !important;
    color: #999 !important;
}

.comparador-custom-select.disabled .comparador-select-value {
    color: #999 !important;
}

.comparador-custom-select:not(.disabled) .comparador-select-input {
    background-color: #ffffff;
    cursor: pointer;
}

.comparador-select-value {
    flex: 1;
    text-align: left;
    color: inherit;
    line-height: 1.4;
    word-wrap: break-word;
    overflow: hidden;
}

.comparador-select-value .comparador-select-description {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 4px;
    line-height: 1.3;
    font-weight: normal;
}

.comparador-select-value .product-tecnologia {
    font-weight: inherit;
    font-size: inherit;
    display: inline;
    color: inherit;
    margin: 0;
    padding: 0;
    vertical-align: baseline;
    line-height: inherit;
    letter-spacing: inherit;
    text-transform: none;
}

/* FUTURE: Linhas verticais divisórias no campo do select
   Para ativar no futuro, descomente o código abaixo:
   
.comparador-select-input::before,
.comparador-select-input::after {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: #e0e0e0;
}

.comparador-select-input::before {
    left: 33.33%;
}

.comparador-select-input::after {
    left: 66.66%;
}
*/

.comparador-select-value.placeholder {
    color: #999 !important;
}

.comparador-custom-select.disabled .comparador-select-value.placeholder {
    color: #999 !important;
}

.comparador-select-arrow {
    width: 12px;
    height: 12px;
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4 L6 8 L10 4' stroke='%23999' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.3s;
    flex-shrink: 0;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.comparador-custom-select.open .comparador-select-arrow {
    transform: translateY(-50%) rotate(180deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4 L6 8 L10 4' stroke='%235CB85C' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.comparador-custom-select.disabled .comparador-select-arrow {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4 L6 8 L10 4' stroke='%23999' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.comparador-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 400px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.comparador-select-search {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 8px 8px 0 0;
}

.comparador-search-input {
    width: 100%;
    padding: 12px 12px 12px 45px !important;
    /* Increased left padding and forced */
    border: 1px solid #ddd;
    border-radius: 8px !important;
    font-size: 14px;
    box-sizing: border-box;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 15px center !important;
    /* Adjusted icon position and forced */
    background-size: 18px 18px;
    line-height: normal;
    height: 42px;
    /* Slightly taller */
    display: flex;
    align-items: center;
}

.comparador-search-input:focus {
    outline: none;
    border-color: #5CB85C !important;
    /* Green border on focus */
    box-shadow: 0 0 0 2px rgba(90, 184, 92, 0.1) !important;
}

.comparador-select-options {
    overflow-y: auto;
    max-height: 320px;
    padding: 0;
    border-radius: 0 0 8px 8px;
}

.comparador-select-option {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    padding-top: 18px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
}

.comparador-select-option:last-child {
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}


.comparador-select-option:hover {
    background-color: #f5f5f5;
}

.comparador-select-option.selected {
    background-color: #e8f5e9;
    border-radius: 8px;
}

.comparador-option-thumbnail {
    width: 60px;
    height: 80px;
    object-fit: contain;
    margin-right: 12px;
    flex-shrink: 0;
    background: #fafafa;
    border-radius: 4px;
    padding: 4px;
}

.comparador-option-thumbnail[style*="background"] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparador-option-content {
    flex: 1;
    min-width: 0;
}

.comparador-option-title {
    font-weight: bold;
    font-size: 20px;
    color: #000;
    margin-bottom: 4px;
    line-height: 0.8;
}

.comparador-option-title .product-tecnologia {
    font-weight: 600;
    font-size: 12px;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    display: inline-block;
    vertical-align: bottom;
    line-height: 1;
    margin: -0.87px 0;
    color: #000;
}

.comparador-option-description {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comparador-select-options.empty {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.comparador-hidden-input {
    display: none;
}


.comparador-product-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Added shadow */
    padding: 0 !important;
    position: relative;
    /* Removed fixed height to allow flexbox stretching */
    border: none !important;
    width: 360px !important;
    /* Largura exata do Figma */
    max-width: 360px !important;
    min-width: 360px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    margin-top: 0 !important;
    /* FORÇA ZERO no topo */
    padding-top: 0 !important;
    /* FORÇA ZERO no topo */
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    /* Permite que o card cresça e encolha */
    /* Allow card to fill remaining height of the slot */
    align-self: stretch !important;
    /* Garante que o card se estenda para preencher o slot */
    min-height: 440px !important;
    /* Altura mínima para não ficar "baixinho" */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comparador-product-card:not(.has-product) {
    cursor: pointer !important;
}

.comparador-product-card:not(.has-product):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.comparador-product-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 440px !important;
    /* Altura mínima para coincidir com o card do Elementor */
    color: #999;
    position: relative;
    z-index: 1;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 20px !important;
    /* REDUZIDO de 40px para 20px */
    margin: 0 !important;
    /* FORÇA ZERO */
    width: 100% !important;
    box-sizing: border-box;
    flex: 1;
    cursor: pointer;
    /* Added cursor pointer */
    /* Ensure placeholder fills the card */
}

.comparador-product-placeholder .placeholder-icon {
    margin-bottom: 10px !important;
    /* REDUZIDO de 20px para 10px */
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparador-product-placeholder .placeholder-icon svg {
    width: 100%;
    height: auto;
    max-width: 150px !important;
    /* REDUZIDO de 200px para 150px */
}

.comparador-product-placeholder .placeholder-text {
    font-size: 14px;
    color: #999;
    text-align: center;
    margin: 0;
}

/* Product Card Content */
.comparador-product-card.has-product {
    padding: 0;
}

.comparador-product-card.has-product .product-remove-btn {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    /* Increased size */
    height: 32px;
    /* Increased size */
    background: #FFD700;
    border: none;
    border-radius: 50%;
    color: #000;
    font-size: 20px;
    /* Increased font size */
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background-color 0.3s;
    line-height: 1;
    padding: 0;
    margin: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    /* Added shadow to button */
}

.comparador-product-card.has-product .product-remove-btn:hover {
    background: #FFC700;
}

.comparador-product-card.has-product .product-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px 8px 0 0;
}

.comparador-product-card.has-product .product-tags {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    flex-wrap: wrap;
}

.comparador-product-card.has-product .product-tag {
    padding: 6px 12px;
    border: 2px solid #FFD700;
    border-radius: 4px;
    background: #ffffff;
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.comparador-product-card.has-product .product-tech-sheet-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    /* Right and Left 16px */
    border: 1px solid #212121;
    border-radius: 8px;
    background: transparent;
    color: #212121;
    font-family: "Stag Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    width: 100%;
}

.comparador-product-card.has-product .product-tech-sheet-btn:hover {
    background: #27482B;
    color: #FDD301;
    border-color: #FDD301;
}

.comparador-product-card.has-product .product-tech-sheet-btn svg {
    width: 16px;
    height: 16px;
}

.comparador-product-card.has-product {
    background: #ffffff;
    border-radius: 8px;
    padding: 0 0 10px 0;
    /* Reduced padding-bottom */
    display: flex;
    flex-direction: column;
    /* Removed fixed height to allow flexbox stretching */
    overflow: visible !important;
    /* Must be visible for close button */
    flex: 1;
    /* Allow card to fill remaining height */
}

.comparador-product-card.has-product .product-name {
    font-family: "Stag Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #000;
    padding: 0 20px;
    margin: 0 0 auto 0;
    font-size: 0;
    /* Remove espaçamento entre inline-blocks */
}

.comparador-product-card.has-product .product-title-text {
    font-weight: 400;
    font-size: 24px;
    letter-spacing: -0.05em;
    /* -5% */
    text-transform: uppercase;
    display: inline-block;
    line-height: 24px;
    margin: 0;
    padding: 0;
    vertical-align: bottom;
}

.comparador-product-card.has-product .product-tecnologia {
    font-family: "Stag Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: -0.05em;
    /* -5% */
    text-transform: uppercase;
    color: #000;
    display: inline-block;
    line-height: 12px;
    margin: -0.87px 0;
    padding: 0;
    margin-left: 8px;
    vertical-align: bottom;
}

.comparador-product-card.has-product .product-description {
    font-size: 14px;
    color: #666;
    padding: 0 20px 20px;
    line-height: 1.5;
}

.comparador-product-card.has-product .product-saiba-mais-btn {
    display: none;
}

/* Compare Button */
.comparador-actions {
    text-align: center;
    margin-top: 30px;
}

.comparador-compare-btn {
    background-color: #009370;
    font-family: "Stag Sans", Sans-serif;
    font-size: 18px;
    font-weight: 200 !important;
    fill: #ffffff;
    color: #ffffff;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #009370;
    border-radius: 8px 8px 8px 8px;
    height: 42px;
    padding: 0 40px;
    line-height: 100%;
    letter-spacing: -0.15px;
    vertical-align: middle;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, color 0.2s, border-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.comparador-compare-btn:hover {
    background-color: #01548C;
    color: #ffffff;
    border: 1px solid #01548C;
    fill: #ffffff;
    box-shadow: none;
    transform: none;
}

.comparador-compare-btn:active {
    background: #FFD700;
    transform: translateY(0);
}

.comparador-compare-btn:disabled,
.comparador-compare-btn.disabled {
    background-color: #f5f5f5 !important;
    color: #999 !important;
    border: 1px solid #ddd !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.comparador-compare-btn:disabled:hover,
.comparador-compare-btn.disabled:hover {
    background-color: #f5f5f5 !important;
    transform: none;
    box-shadow: none;
}

.comparador-clear-btn {
    background: #009370;
    color: #ffffff;
    border: 1px solid #009370;
    height: 42px;
    margin-left: 20px;
    font-family: "Stag Sans", Sans-serif;
    font-weight: 200 !important;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 0 40px;
    line-height: 100%;
    letter-spacing: -0.15px;
    vertical-align: middle;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Space between buttons */
}

/* Hover effect matching compare button */
.comparador-clear-btn:hover {
    background-color: #01548C;
    color: #ffffff;
    border: 1px solid #01548C;
    fill: #ffffff;
    box-shadow: none;
    transform: none;
}

/* Comparison Table */
.comparador-comparison {
    margin-top: 40px;
    background: #ffffff;
    padding: 0;
    width: 100%;
}

.comparador-comparison-products {
    display: grid;
    grid-template-columns: 35% repeat(3, calc(65% / 3));
    /* Mesmo grid da tabela: label + 3 produtos */
    gap: 0;
    margin-bottom: 30px;
    align-items: start;
}

.comparador-comparison-product-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    justify-self: start;
    /* Alinha à esquerda da coluna */
}

/* Produtos nas colunas 2, 3 e 4 (alinhados com as colunas da tabela) */
/* Produtos fluem naturalmente com o espaçador na coluna 1 */
.comparador-header-sticky-col {
    grid-column: 1;
    background: transparent;
    position: sticky;
    left: 0;
    z-index: 30;
    width: 100%;
    height: 100%;
}

.comparador-comparison-product-card .product-image {
    width: 60px;
    height: auto;
    margin: 0;
    object-fit: contain;
    flex-shrink: 0;
}

.comparador-comparison-product-card .product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.comparador-comparison-product-card .product-name {
    font-family: "Stag Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin: 0;
    color: #000;
    text-align: left;
    font-size: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Remove espaçamento entre inline-blocks */
}

.comparador-comparison-product-card .product-title-text {
    font-weight: 200;
    font-size: 18px;
    letter-spacing: -0.05em;
    /* -5% */
    text-transform: uppercase;
    display: inline-block;
    line-height: 16px;
    margin: 0;
    padding: 0;
    vertical-align: bottom;
    white-space: nowrap;
}

.comparador-comparison-product-card .product-tecnologia {
    font-family: "Stag Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: -0.05em;
    /* -5% */
    text-transform: uppercase;
    color: #000;
    display: inline-block;
    line-height: 12px;
    margin: -0.87px 0;
    padding: 0;
    margin-left: 6px;
    vertical-align: bottom;
    white-space: nowrap;
}

.comparador-comparison-product-card .product-tech-sheet-btn {
    background: #ffffff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 7px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color 0.3s;
    white-space: nowrap;
    width: 149px;
    box-sizing: border-box;
}

.comparador-comparison-product-card .product-tech-sheet-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: #000;
}

.comparador-comparison-product-card .product-tech-sheet-btn .tech-sheet-icon {
    width: auto;
    height: 14px;
    flex-shrink: 0;
}

.comparador-comparison-product-card .product-tech-sheet-btn:hover {
    background: #FFD700 !important;
}

/* Section Cards - SEM borda, cada linha é independente */
.comparador-section-card {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-bottom: 30px !important;
    box-shadow: none !important;
    overflow: visible !important;
    clear: both !important;
    width: 100% !important;
    display: block !important;
}

/* Force no table display anywhere - AGGRESSIVE */
.comparador-section-card table,
.comparador-section-card tbody,
.comparador-section-card thead,
.comparador-section-card tfoot,
.comparador-section-card tr,
.comparador-section-card td,
.comparador-section-card th {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Force grid on rows - override ANY table styling */
.comparador-section-row {
    display: grid !important;
    grid-template-columns: 35% repeat(3, calc(65% / 3)) !important;
    grid-auto-flow: row !important;
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.comparador-section-card:last-of-type {
    margin-bottom: 0 !important;
}

/* Section Header - título da seção (sem borda, apenas texto) */
.comparador-section-header {
    background: transparent !important;
    border: none !important;
    padding: 0 0 15px 0 !important;
    margin-bottom: 0 !important;
}

.comparador-section-header.tolerance-header {
    background: transparent !important;
    color: #000 !important;
}

.comparador-section-title {
    font-family: "Stag Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: 600;
    /* SemiBold */
    font-size: 20px;
    text-align: left;
    color: #1E1E1E;
    margin: 0;
}

.comparador-section-header.tolerance-header .comparador-section-title {
    color: #1E1E1E !important;
    /* Mesma cor para todos os títulos */
}

/* Section Body */
.comparador-section-body {
    display: block;
    width: 100%;
    background: #ffffff;
}

/* Section Rows - Grid Layout */
/* CADA LINHA é uma tabela independente com sua própria borda e border-radius */
.comparador-section-row {
    display: grid !important;
    grid-template-columns: 35% repeat(3, calc(65% / 3)) !important;
    position: relative !important;
    border: 1px solid #1E552A !important;
    /* Borda verde escura 1px */
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    width: 100% !important;
    margin-bottom: 10px !important;
}

.comparador-section-row:last-child {
    margin-bottom: 0 !important;
}

/* Removido - cada linha é independente, não precisa de linha separadora */

.comparador-section-row.tolerance-row {
    /* Fixed grid: wider label column + 3 product columns */
    grid-template-columns: 35% repeat(3, calc(65% / 3)) !important;
    gap: 0 !important;
    border: 1px solid #1E552A !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    align-items: center !important;
}

/* Tolerance title row: title on left + M MT T headers aligned with columns (NO BORDER) */
.comparador-tolerance-title-row {
    display: grid !important;
    grid-template-columns: 35% repeat(3, calc(65% / 3)) !important;
    gap: 0 !important;
    border: none !important;
    background: transparent !important;
    align-items: center !important;
    margin-bottom: 10px;
}

.comparador-tolerance-title-row .comparador-section-title {
    font-family: "Stag Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: 600;
    font-size: 20px;
    text-align: left;
    color: #1E1E1E;
    margin: 0;
    padding: 0;
}

/* Espaçadores e divisores de tolerância - HIDDEN */
.comparador-tolerance-spacer,
.comparador-tolerance-divider {
    display: none !important;
}

/* Tolerance Circles - 3 circles per product per row */
.comparador-tolerance-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #e0e0e0;
    /* Gray when inactive */
    display: inline-block;
    flex-shrink: 0;
}

.comparador-tolerance-circle.active {
    background-color: #009370;
    /* Green when active */
}

/* Group of 3 circles per product */
.comparador-tolerance-group {
    display: flex !important;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

/* Each circle - NO margin, gap handles spacing */
.comparador-tolerance-group .comparador-tolerance-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin: 0;
    flex-shrink: 0;
}

/* Header group for M MT T labels - same layout as circles */
.comparador-tolerance-header-group {
    display: flex !important;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-weight: 600;
    font-size: 16px;
    color: #000;
}

/* Each span must match circle size (24px) for perfect alignment */
.comparador-tolerance-header-group span {
    width: 24px;
    text-align: center;
    display: inline-block;
}

/* Tolerance indicators container (for legacy/other sections) */
.comparador-tolerance-indicators {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
}

.comparador-section-row.comparador-column-header-row {
    border: 1px solid #1E552A !important;
    border-radius: 10px !important;
    background: #ffffff;
    min-height: 48px !important;
    display: grid !important;
}

.comparador-section-row.comparador-column-header-row.tolerance-product-header {
    grid-template-columns: 35% repeat(3, calc(65% / 3)) !important;
}

.comparador-column-header-cell {
    text-align: center;
    color: #000;
    background: #ffffff;
    padding: 12px 15px;
    position: relative !important;
    border-right: none !important;
    border-left: none !important;
    border-top: none !important;
    border-bottom: none !important;
    font-weight: 600;
    display: block !important;
    min-height: 24px !important;
    font-size: 14px !important;
}

.comparador-column-header-cell:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: #e0e0e0;
}

/* Removido - não precisa mais pois usamos pseudo-elementos */

/* Field Labels */
/* Linhas internas verticais cinza claro 1px que NÃO encostam no top/bottom */
.comparador-field-label {
    font-weight: 600;
    color: #000;
    padding: 12px 15px;
    text-align: left;
    background: #ffffff;
    position: relative !important;
    border-right: none !important;
    border-left: none !important;
    border-top: none !important;
    border-bottom: none !important;
    display: block !important;
    white-space: normal;
    overflow: visible;
    word-break: break-word;
}

.comparador-field-label:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: #e0e0e0;
}

/* Field Values */
/* Linhas internas verticais cinza claro 1px que NÃO encostam no top/bottom */
.comparador-field-value {
    text-align: center;
    color: #000;
    background: #ffffff;
    padding: 12px 15px;
    position: relative !important;
    border-right: none !important;
    border-left: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

/* Override for tolerance group - must be flex, not block */
.comparador-field-value.comparador-tolerance-group {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    /* gap is set by .comparador-tolerance-group base rule or media queries */
}

.comparador-field-value:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: #e0e0e0;
}

/* Removido - não precisa mais pois usamos pseudo-elementos */

/* Tolerance Header Cells */
/* Linhas internas verticais cinza claro 1px que NÃO encostam no top/bottom */
.comparador-tolerance-header-cell {
    text-align: center;
    color: #000;
    background: #ffffff;
    padding: 12px 15px;
    position: relative !important;
    border-right: none !important;
    border-left: none !important;
    border-top: none !important;
    border-bottom: none !important;
    font-weight: 600;
}

/* Remove barras verticais entre todas as células do header de tolerância */
.comparador-section-row.tolerance-header-row .comparador-tolerance-header-cell::after {
    display: none !important;
}


.comparador-tolerance-header-cell {
    position: relative;
}

/* Rounded corners for table */
.comparador-section-header {
    border-radius: 0 !important;
}

.comparador-section-header:first-child {
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
}

/* Removido - cada linha já tem border-radius completo de 10px, inclusive a última */

/* Responsive - Tablet (Force 3 columns) */
@media (max-width: 1150px) and (min-width: 769px) {
    .comparador-sementes-wrapper {
        width: 100% !important;
        padding: 15px !important;
    }

    .comparador-filters-container {
        width: 100% !important;
        max-width: 100% !important;
        /* Keep filters stacked or side-by-side depending on space */
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
    }

    .comparador-hybrids-container {
        width: 100% !important;
        max-width: 100% !important;
        /* FORCE 3 columns */
        grid-template-columns: repeat(3, 1fr) !important;
        justify-content: start !important;
        gap: 15px !important;
        /* Smaller gap */
    }

    .comparador-hybrid-slot {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .comparador-product-card,
    .comparador-dropdown-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* Adjust text size for smaller columns if needed */
    .comparador-hybrid-label {
        font-size: 13px !important;
        text-align: center !important;
    }

    .comparador-compare-btn {
        font-size: 16px !important;
    }

    /* Product card in comparison - smaller fonts for tablet */
    .comparador-comparison-product-card .product-title-text {
        font-size: 18px !important;
        line-height: 16px !important;
    }

    .comparador-comparison-product-card .product-tecnologia {
        font-size: 12px !important;
    }

    .comparador-comparison-product-card .product-name {
        white-space: nowrap !important;
    }

    /* Smaller Ficha técnica button on tablet */
    .comparador-comparison-product-card .product-tech-sheet-btn {
        font-size: 10px !important;
        padding: 5px 8px !important;
        gap: 4px !important;
    }

    .comparador-comparison-product-card .product-tech-sheet-btn svg {
        width: 12px !important;
        height: 12px !important;
    }

    /* Tablet tolerance adjustments - smaller circles, tighter spacing, smaller labels */
    .comparador-tolerance-group,
    .comparador-tolerance-header-group {
        gap: 5px !important;
    }

    .comparador-tolerance-group .comparador-tolerance-circle {
        width: 18px !important;
        height: 18px !important;
    }

    .comparador-tolerance-header-group span {
        width: 18px !important;
        font-size: 12px !important;
    }

    .comparador-field-label {
        font-size: 12px !important;
    }
}

/* Responsive - Mobile (Single Column) */
@media (max-width: 768px) {
    .comparador-sementes-wrapper {
        width: 100% !important;
        padding: 15px !important;
    }

    .comparador-filters-container {
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .comparador-hybrids-container {
        width: 100% !important;
        /* Single column */
        max-width: 100% !important;
        grid-template-columns: 1fr !important;
        /* Single column */
        justify-content: center !important;
        gap: 30px !important;
        margin: 5px 0 -20px 0 !important;
    }

    .comparador-hybrid-slot,
    .comparador-product-card,
    .comparador-dropdown-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* Ensure only relevant rules are here (others cascade from tablet or are overridden) */
}

/* Responsive - Mobile (Single Column) */
@media (max-width: 768px) {

    /* Main wrapper becomes the scroll container */
    /* Main wrapper becomes the scroll container */
    .comparador-comparison {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        /* Remove top margin */
        -webkit-overflow-scrolling: touch;
    }

    /* Filters remain stacked */
    .comparador-filters-container {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Center labels on mobile */
    .comparador-segmento-selector label,
    .comparador-estado-selector label,
    .comparador-hybrid-label {
        text-align: left !important;
    }

    .comparador-segmento-selector,
    .comparador-estado-selector,
    .comparador-cultura-selector {
        max-width: 100% !important;
        width: 100% !important;
    }

    .comparador-segmento-selector select,
    .comparador-estado-selector select,
    .comparador-cultura-selector select,
    .comparador-estado-select,
    .comparador-cultura-select,
    .comparador-custom-select,
    .comparador-select-input,
    .comparador-hybrid-slot .comparador-custom-select,
    .comparador-hybrid-slot .comparador-select-input {
        width: 100% !important;
        max-width: 100% !important;
    }

    .comparador-hybrids-container {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Buttons on mobile - stacked vertically */
    .comparador-selection {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .comparador-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        align-items: stretch !important;
        margin-bottom: 0 !important;
        /* Force zero margin bottom */
        padding-bottom: 0 !important;
    }

    .comparador-sementes-wrapper {
        padding-bottom: 0 !important;
        /* Ensure wrapper has no bottom padding */
    }

    .comparador-actions .btn,
    .comparador-actions button,
    .comparador-btn-compare,
    .comparador-btn-clear,
    .comparador-compare-btn,
    .comparador-clear-btn {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Restore Grid Layout for comparison table parts on mobile */
    .comparador-comparison-products,
    .comparador-section-row,
    .comparador-section-row.tolerance-header-row,
    .comparador-section-row.tolerance-row {
        display: grid !important;
        /* Force minimum width to trigger scroll */
        min-width: 1100px !important;
        /* 320 + 260*3 = 1100 */
        /* Fixed widths for better control - LARGER label column */
        grid-template-columns: 320px repeat(3, 260px) !important;
        gap: 0 !important;
    }

    /* Tolerance title row on mobile */
    .comparador-tolerance-title-row {
        display: grid !important;
        min-width: 1100px !important;
        grid-template-columns: 320px repeat(3, 260px) !important;
        gap: 0 !important;
    }

    /* Ensure labels don't get cut off */
    .comparador-field-label {
        min-width: 150px !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: initial !important;
        font-size: 15px !important;
    }

    /* Tolerance header group on mobile - same layout as circles */
    .comparador-tolerance-header-group,
    .comparador-tolerance-group {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 24px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    /* Ensure the parent cell centers the tolerance group */
    .comparador-field-value.comparador-tolerance-group,
    .comparador-tolerance-header-cell {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* Ensure circles and labels have same size */
    .comparador-tolerance-header-group span {
        width: 24px !important;
        text-align: center !important;
        display: inline-block !important;
    }

    .comparador-tolerance-circle {
        width: 24px !important;
        height: 24px !important;
        flex-shrink: 0 !important;
    }

    /* Yellow scrollbar for comparison table on mobile */
    .comparador-comparison::-webkit-scrollbar {
        height: 8px !important;
    }

    .comparador-comparison::-webkit-scrollbar-track {
        background: #f1f1f1 !important;
        border-radius: 4px !important;
    }

    .comparador-comparison::-webkit-scrollbar-thumb {
        background: #009370 !important;
        border-radius: 4px !important;
    }

    /* Firefox scrollbar */
    .comparador-comparison {
        scrollbar-width: thin !important;
        scrollbar-color: #009370 #f1f1f1 !important;
    }

    .comparador-comparison-product-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        padding: 10px 5px !important;
    }

    .comparador-comparison-product-card .product-info {
        align-items: center !important;
        width: 100% !important;
    }

    .comparador-comparison-product-card .product-name {
        text-align: center !important;
        width: 100% !important;
        white-space: normal !important;
        font-size: 14px !important;
    }

    /* Remove object-fit or size constraints if needed */
    .comparador-comparison-product-card .product-image {
        width: 60px !important;
        height: auto !important;
        margin-bottom: 8px !important;
    }

    .comparador-comparison-product-card .product-tech-sheet-btn {
        padding: 6px 8px !important;
        font-size: 11px !important;
        width: auto !important;
        background: transparent !important;
        color: #212121 !important;
        border: 1px solid #212121 !important;
    }

    .comparador-comparison-product-card .product-tech-sheet-btn:hover {
        background: #27482B !important;
        color: #FDD301 !important;
        border-color: #FDD301 !important;
    }

    /* Section cards no longer handle scroll */
    .comparador-section-card {
        overflow-x: visible !important;
        margin-bottom: 20px !important;
        display: block !important;
        width: auto !important;
    }

    /* Sticky First Column Styling - Labels keep gray background */
    .comparador-field-label {
        position: sticky !important;
        left: 0;
        z-index: 20;
        background: #f8f8f8 !important;
        /* Gray background for labels */
        border-right: 1px solid #d0d0d0 !important;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
        display: flex !important;
        align-items: center;
        justify-content: flex-end !important;
        /* Align Right */
        text-align: right !important;
        font-weight: 600;
        color: #444;
        font-size: 15px !important;
        padding: 5px 10px 5px 5px !important;
        word-break: break-word;
        line-height: 1.3 !important;
    }

    /* Header sticky col - transparent to see product cards */
    .comparador-header-sticky-col {
        position: sticky !important;
        left: 0;
        z-index: 20;
        background: transparent !important;
        border-right: none !important;
        box-shadow: none !important;
    }

    /* Header sticky col properties kept from above rule */

    /* Remove the gradient shadows from container, rely on sticky shadow */
    .comparador-comparison {
        background: #ffffff;
    }

    /* Hide the scroll hint after animation */
    .comparador-scroll-hint {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        background: rgba(0, 0, 0, 0.85) !important;
        color: white !important;
        padding: 12px 24px !important;
        border-radius: 30px !important;
        pointer-events: none !important;
        opacity: 0;
        animation: fadeHint 5s ease-in-out forwards !important;
        animation-delay: 0.5s !important;
        z-index: 2147483647 !important;
        /* Max Z-Index */
        font-size: 15px !important;
        font-weight: 600 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4) !important;
        white-space: nowrap !important;
        backdrop-filter: blur(4px);
    }

    @keyframes fadeHint {
        0% {
            opacity: 0;
        }

        20% {
            opacity: 1;
        }

        80% {
            opacity: 1;
        }

        100% {
            opacity: 0;
        }
    }
}

@media (max-width: 480px) {
    .comparador-sementes-wrapper {
        padding: 10px !important;
    }

    .comparador-product-card.has-product .product-image {
        height: 200px !important;
    }

    .comparador-product-card.has-product .product-title-text {
        font-size: 20px !important;
    }
}

/* Loading state for Elementor cards */
.comparador-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #999;
    font-size: 14px;
}

/* Legend Styles */
.comparador-tolerance-legend {
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    width: 100%;
}

.comparador-tolerance-legend h4 {
    display: none;
    /* Hide title as per new design implication or keep minimal if needed, user didn't specify title style, but structure changed */
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: flex-start;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.comparador-tolerance-legend .legend-item .legend-label {
    font-family: 'Stag Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    font-size: 14px !important;
    color: #4D4D4D !important;
    margin: 0;
}

.comparador-tolerance-legend .legend-item .legend-label strong {
    font-weight: 700 !important;
}



.legend-circle {
    font-weight: 700;
    /* Bold */
    color: #333;
    margin-right: 4px;
}

.legend-circle::after {
    content: " \2013 ";
    /* En dash */
    font-weight: 400;
    color: #999;
    margin-left: 4px;
}

.legend-label {
    color: #555;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .comparador-tolerance-legend {
        padding: 20px;
        box-sizing: border-box;
    }

    .legend-items {
        flex-direction: column;
        gap: 10px;
    }
}

@keyframes fadeHint {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }

    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    90% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
}

.comparador-required-asterisk {
    color: red !important;
    font-weight: bold;
    margin-left: 2px;
}

/* Skeleton Loader */
.comparador-skeleton {
    width: 100%;
    height: 100%;
    min-height: 440px;
    background: #fff;
    border-radius: 8px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.comparador-skeleton-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.comparador-skeleton-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comparador-skeleton-line {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.comparador-skeleton-line.title {
    width: 70%;
    height: 28px;
}

.comparador-skeleton-line.text {
    width: 100%;
}

.comparador-skeleton-line.text-short {
    width: 40%;
}

.comparador-skeleton-line.button {
    margin-top: auto;
    width: 100%;
    height: 40px;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}
