/*
 * WxDigitals EPO - mevcut ThemeComplete özel CSS ile uyumlu beden tasarımı.
 * Seçimde siyah dolgu kullanmaz; yalnızca net bir kenarlık gösterir.
 */

/* Satır: masaüstünde başlık ve seçenekler yan yana. */
html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-row > h5.tc-epo-label,
html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-row > h5.tm-epo-element-label {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    min-height: 42px !important;
    margin: 0 15px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #555 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    box-sizing: border-box !important;
}

html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-row > .tc-element-container,
html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-row > .tc-col {
    display: block !important;
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Liste: taşmadan sola yaslı ve gerektiğinde alt satıra geçer. */
html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list > li.tmcp-field-wrap,
html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list > li {
    display: block !important;
    float: none !important;
    clear: none !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list .tm-epo-field-label {
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

/* Normal S/M/L seçenekleri. */
html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list .tc-epo-text-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #4b5563 !important;
    box-shadow: none !important;
    transform: none !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    transition: border-color .18s ease, box-shadow .18s ease, color .18s ease !important;
}

/* 10-12 Yaş gibi metinler için daha geniş kutu. */
html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-age-row .wxd-epo-size-list .tc-epo-text-wrapper {
    width: 58px !important;
    min-width: 58px !important;
    height: 46px !important;
    min-height: 46px !important;
}

/* Önceki sürümün iç kutu stilini ve tema dolgularını sıfırlar. */
html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list .tc-label-wrap {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    transform: none !important;
    overflow: visible !important;
    pointer-events: none !important;
    box-sizing: border-box !important;
}

/* Gerçek checkbox/radio tüm kutuyu kaplar; metin tam merkezde kalır. */
html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list .tc-epo-text-wrapper > input.tmcp-field,
html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list .tc-epo-text-wrapper > input[type="checkbox"],
html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list .tc-epo-text-wrapper > input[type="radio"] {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    cursor: pointer !important;
}

html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list .tc-label-wrap::after {
    display: none !important;
    content: none !important;
}

html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list .tc-label,
html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list .tm-label {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list .wxd-epo-size-main {
    display: block !important;
    color: inherit !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list .wxd-epo-size-suffix {
    display: block !important;
    margin-top: 3px !important;
    color: #7b8492 !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

/* Hover: hafif ve temiz. */
html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list label:hover .tc-epo-text-wrapper {
    border-color: var(--wxd-epo-accent, #111) !important;
    background: #fff !important;
    color: #111 !important;
    box-shadow: 0 0 0 1px rgba(17, 17, 17, .06) !important;
    transform: none !important;
}

/* Seçili: siyah dolgu YOK; iki piksellik kenarlık ve beyaz zemin. */
html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list .tc-epo-text-wrapper:has(input:checked),
html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list .tc-epo-text-wrapper:has(input.tm-checked),
html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list label.tc-active .tc-epo-text-wrapper,
html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list label.tm-checked .tc-epo-text-wrapper {
    border: 2px solid var(--wxd-epo-accent, #111) !important;
    background: #fff !important;
    color: #111 !important;
    box-shadow: 0 0 0 2px rgba(17, 17, 17, .08) !important;
    transform: none !important;
}

html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list .tc-epo-text-wrapper:has(input:checked) .tc-label,
html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list .tc-epo-text-wrapper:has(input.tm-checked) .tc-label,
html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list label.tc-active .tc-label,
html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list label.tm-checked .tc-label {
    color: #111 !important;
    font-weight: 700 !important;
}

html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list .tc-epo-text-wrapper:has(input:checked) .wxd-epo-size-suffix,
html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list .tc-epo-text-wrapper:has(input.tm-checked) .wxd-epo-size-suffix,
html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list label.tc-active .wxd-epo-size-suffix,
html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list label.tm-checked .wxd-epo-size-suffix {
    color: #555 !important;
}

html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list input:focus-visible + .tc-label-wrap {
    outline: 2px solid rgba(17, 17, 17, .22) !important;
    outline-offset: -3px !important;
}

html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list input:disabled + .tc-label-wrap {
    opacity: .45 !important;
    cursor: not-allowed !important;
}

/* Mobil: başlık üstte, seçenekler 4 sütun; 10-12 Yaş taşmaz. */
@media screen and (max-width: 768px) {
    html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-row {
        display: block !important;
        margin-bottom: 12px !important;
    }

    html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-row > h5.tc-epo-label,
    html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-row > h5.tm-epo-element-label {
        display: block !important;
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 0 7px !important;
        text-align: left !important;
    }

    html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
    }

    html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list > li.tmcp-field-wrap,
    html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list > li,
    html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list .tm-epo-field-label {
        width: 100% !important;
        min-width: 0 !important;
    }

    html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list .tc-epo-text-wrapper,
    html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-age-row .wxd-epo-size-list .tc-epo-text-wrapper {
        width: 100% !important;
        min-width: 0 !important;
        height: 46px !important;
        min-height: 46px !important;
    }
}

@media screen and (max-width: 380px) {
    html body .tm-extra-product-options .cpf-type-checkbox .wxd-epo-size-list {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
