/**
 * Theme Name: Aberrant Ink
 * Template:   twentytwentyfive
 */
 
 .woocommerce table.variations tr td, .woocommerce table.variations tr th {
    padding-bottom: 0;
}

.woocommerce-page label {
    margin-bottom: 0;
}

table.variations > tbody > tr > td {
    padding-bottom: 20px;
}

/* Hide the checkbox input */
.modal-checkbox {
    display: none;
}

/* Modal container - hidden by default */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    
    /* Center the modal content */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

/* When the checkbox is checked, make the modal visible */
.modal-checkbox:checked ~ .modal {
    opacity: 1;
    pointer-events: auto;
}

body:has(.modal-checkbox:checked) {
    overflow-y:hidden;
}

/* Modal content box */
.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 6px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}

.modal-backdrop {
    opacity: 0;
}

/* Backdrop close link - covers the entire screen */
body:has(.modal-checkbox:checked) .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 1;
    cursor: default;
    z-index: -1; /* Place behind modal content */
    width: 100vw;
    height: 100vh;
}

.modal-close {
    border: 1px solid #00000020;
    font-size: var(--wp--preset--font-size--medium);
    border-radius: 3px;
    padding: 5px 10px;
}

.modal-trigger {
    margin-bottom: 1em;
    margin-top: .3em;
}

.padding {
    margin-bottom: 1em;
}

.woocommerce div.product form.cart .variations {
    margin-bottom: 0;
}

.a {
    text-decoration-thickness: 1px !important;
    text-underline-offset: .1em;
    color: var(--wp--preset--color--accent-3);
    text-decoration: underline;
    font-size: var(--wp--preset--font-size--small);
    font-weight: 600;
}

.wp-block-table td, .wp-block-table th {
    padding: .5em 0 .5em 0;
    border: 0;
    border-bottom: 1px solid #b1b4b6;
    word-break: normal;
}

.wp-block-table thead {
    border-bottom: 1px solid #b1b4b6;
    text-align:left;
}

.text-align-centre {
    text-align: center;
}

.size-chart-link {
    margin-bottom:1rem;
    cursor: pointer;
}
