.hidden-variation-select select {
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}
.hidden-variation-select {
     height: 0 !important;
     width: 0 !important;
     overflow: hidden !important;
     visibility: hidden !important;
     position: absolute !important;
     left: -9999px !important;
}
th.label .dimenzija-label-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
th.label .dimenzija-label-flex-container .size-guide-trigger-from-label {
    font-size: 0.9em;
    text-decoration: underline;
    white-space: nowrap;
    color: #333;
}
.dimenzija-header-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px; /* Space before variation buttons */
    padding-bottom: 5px; /* Optional: if you want a border or underline */
    /* border-bottom: 1px solid #eee; */ /* Optional: if you want a separator line */
}
.dimenzija-header-label {
    font-weight: bold; /* Make "Dimenzija" bold */
    font-size: 0.9em; /* Slightly larger font */
}
.trigger-size-guide-header {
    font-size: 0.9em;
    text-decoration: underline;
    color: #333;
}
.trigger-size-guide-header:hover {
    color: #000;
}
.variation-buttons-wrapper {
    margin-bottom: 15px;
}
.variation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.variation-button {
    display: inline-block;
    padding: 15px;
    border: 1px solid #eaeaea;
    background: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit; /* Ensure font is inherited */
    font-size: 15px;
    color: #333;
    transition: all 0.2s;
    /* text-decoration: none; removed as it's not needed for buttons */
}
.variation-buttons-wrapper[data-attribute="pa_dimenzija"] .variation-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
}
.variation-buttons-wrapper[data-attribute="pa_dimenzija"] .variation-button {
    padding: 10px 5px;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 0;
    font-size: 0.9em;
    text-align: center;
    line-height: 1.2;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.variation-button:hover {
    border-color: #999;
}
.variation-buttons-wrapper[data-attribute="pa_dimenzija"] .variation-button:hover {
    border: 1px solid #ccc;
    border-bottom: 2px solid #003366;
    padding-bottom: 9px;
}
.variation-button.selected {
    background-color: #3d3d3d;
    color: white;
    border-color: #3d3d3d;
}
.variation-buttons-wrapper[data-attribute="pa_dimenzija"] .variation-button.selected {
    background-color: #fff;
    color: #000;
    border: 1px solid #ccc;
    border-bottom: 2px solid #003366;
    font-weight: bold;
    padding-bottom: 9px;
}
/* Hide table header cells completely */
.variations th.label {
    display: none !important;
}
/* Active state for variation buttons */
.variation-button.active {
    color: #fff;
    background: #003366;
    border: 1px solid #003366; 
}

/* Specific active state for 'pa_dimenzija' attribute */
.variation-buttons-wrapper[data-attribute="pa_dimenzija"] .variation-button.active {
    background-color: #003366; 
    color: #fff;
    border: 1px solid #ccc;
    border-bottom: 2px solid #ff8c00; 
    font-weight: bold; 
    padding-bottom: 9px; 
}