/* Custom-size tile */
.cs-size-item {
    display: inline-block;
    margin: 0 6px 6px 0;
}

/* Ensure our custom tile stands out but inherits theme sizing */
.cs-size-button {
    border: 2px dashed var(--e-global-color-accent, #ff6200) !important;
}

.cs-size-button:hover,
.cs-size-radio:checked + .cs-size-button {
    background: var(--e-global-color-accent, #ff6200) !important;
    color: #fff !important;
    border-style: solid !important;
}

.cs-size-preview {
    font-size: 2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60%;
}

.cs-size-heading {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Modal helpers */
#custom-size-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1000;
}

#custom-size-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.cs-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
}

.cs-popup-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 6px;
    max-width: 480px;
    width: 90%;
    padding: 24px;
    z-index: 1001;
}

.cs-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cs-popup-close {
    background: none;
    border: 0;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.cs-popup-content form p {
    margin-bottom: 12px;
}

.hidden {
    display: none !important;
} 

#custom-size-form label{
    width: 100%;
}