/* Position Grid Field Styling */
.acf-position-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 5px;
    width: 100px;
    height: 100px;
    margin: 10px 0;
}

.acf-position-grid label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border: 1px solid #ccd0d5;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.acf-position-grid label:hover {
    background-color: #e0e0e0;
}

.acf-position-grid input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

/* Styling for checked state */
.acf-position-grid label:has(input[type="radio"]:checked) {
    background-color: #2271b1;
}

/* Styling for disabled state */
.acf-position-grid label:has(input[type="radio"]:disabled) {
    opacity: 0.5;
}

.acf-position-grid label:has(input[type="radio"]:disabled) {
    cursor: not-allowed;
}

.acf-position-grid label:has(input[type="radio"]:disabled) {
    background-color: #f7f7f7;
    cursor: not-allowed;
}

/* Hide screen reader text visually but keep it accessible */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
