/* Typography intentionally inherits the active theme. No web fonts or icon font. */
.tef-sections { clear: both; width: 100%; margin-top: 2.5rem; }
.tef-section { --tef-accent: #f5262c; --tef-card: #f5f5f5; --tef-line: #e5e5e5; margin: 0 0 2.5rem; font-family: inherit; overflow-wrap: anywhere; }
.tef-section *, .tef-admin * { box-sizing: border-box; }
.tef-section .tef-heading { display: flex; align-items: baseline; gap: .7rem; margin: 0 0 1.5rem; padding: 0; font-family: inherit; font-size: 1.2em; font-weight: 700; line-height: 1.4; color: var(--tef-accent); }
.tef-section .tef-heading::before { content: ""; flex: 0 0 .65rem; width: .65rem; height: 1em; background: currentColor; transform: translateY(.1em); }
.tef-section .tef-title { margin: 0 0 .7rem; padding: 0; font-family: inherit; font-size: 1.125em; font-weight: 700; line-height: 1.4; color: inherit; }
.tef-section .tef-description { margin: 0; font: inherit; line-height: 1.65; }
.tef-section .tef-image { display: block; max-width: 100%; height: auto; margin: 0 auto; border: 0; }
.tef-section .tef-file { display: inline-block; max-width: 100%; text-decoration: underline; }
.tef-advantages .tef-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem; }
.tef-advantages .tef-item { border-radius: .8rem; padding: 1.2rem 1.1rem; background: var(--tef-card); text-align: center; }
.tef-advantages .tef-media { margin: 0 auto 1.2rem; }
.tef-advantages .tef-image { width: 64px; height: 64px; object-fit: contain; }
.tef-components .tef-items { display: grid; gap: 1.5rem; }
.tef-components .tef-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); border: 1px solid var(--tef-line); box-shadow: 0 2px 8px #00000008; }
.tef-components .tef-media { display: flex; align-items: center; justify-content: center; background: #f0f2f8; min-width: 0; }
.tef-components .tef-image { width: 100%; object-fit: contain; }
.tef-components .tef-copy { align-self: center; padding: 1.65rem; min-width: 0; }
.tef-components .tef-item-no-media { grid-template-columns: minmax(0, 1fr); }
.tef-suitability .tef-rating-table { table-layout: fixed; border-collapse: collapse; width: 100%; margin: 0; font: inherit; border: 0; background: transparent; }
.tef-suitability .tef-rating-table th, .tef-suitability .tef-rating-table td { padding: .7rem .5rem; vertical-align: middle; border: 0; border-bottom: 1px solid var(--tef-line); text-align: start; background: transparent; color: inherit; font: inherit; line-height: 1.45; }
.tef-suitability .tef-rating-table thead th { font-weight: 600; }
.tef-suitability .tef-rating-table th:first-child { width: 34%; }
.tef-suitability .tef-rating-table th:nth-child(2) { width: 24%; }
.tef-stars { display: inline-block; white-space: nowrap; font-family: Arial, sans-serif; font-size: 1.2em; letter-spacing: .04em; }
.tef-stars-filled { color: #e99311; }
.tef-stars-empty { color: #767676; }
.tef-customer_cases .tef-items { display: grid; gap: 1.25rem; }
.tef-customer_cases .tef-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); gap: 2rem; align-items: start; }
.tef-customer_cases .tef-media, .tef-customer_cases .tef-copy { min-width: 0; }
.tef-customer_cases .tef-video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; background: #000; }
.tef-customer_cases .tef-copy { padding: 1rem 0; font-style: italic; }
.tef-customer_cases .tef-case-stars { display: block; color: #df7050; font: 1.25em/1 Arial, sans-serif; }
.tef-customer_cases .tef-country { margin: .35rem 0 1.5rem; font-size: 1.125em; font-weight: 600; line-height: 1.4; }
.tef-customer_cases .tef-title { margin: 0 0 1.25rem; font-size: 1em; font-weight: 400; font-style: italic; }
.tef-customer_cases .tef-description { line-height: 1.4; }
.tef-customer_cases .tef-item-no-media { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 640px) {
    .tef-customer_cases .tef-item { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
    .tef-customer_cases .tef-copy { padding: .5rem 0; }
    .tef-advantages .tef-items, .tef-components .tef-item { grid-template-columns: minmax(0, 1fr); }
    .tef-components .tef-copy { padding: 1.2rem; }
    .tef-section { margin-bottom: 2rem; }
    .tef-suitability .tef-rating-table th, .tef-suitability .tef-rating-table td { padding: .6rem .3rem; font-size: .9em; }
    .tef-suitability .tef-rating-table th:first-child { width: 31%; }
    .tef-suitability .tef-rating-table th:nth-child(2) { width: 29%; }
    .tef-stars { font-size: 1em; letter-spacing: 0; }
}

/* Classic WooCommerce product editor; overrides stay inside our own panel. */
#tef-product-data { padding: 14px; }
#tef-product-data > p { margin: 0 0 14px; padding: 0; }
.tef-admin .tef-admin-section { padding: 14px 0; border-top: 1px solid #dcdcde; }
.tef-admin .tef-admin-section h3 { margin: 0 0 12px; padding: 0; }
.tef-admin .tef-row { padding: 14px; margin: 0 0 12px; border: 1px solid #dcdcde; border-radius: 4px; background: #fafafa; }
.tef-admin .tef-row-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tef-admin .tef-row-number { margin-inline-end: auto; }
.tef-admin .tef-field { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: start; gap: 8px; margin: 10px 0; }
#tef-product-data .tef-field label, .tef-admin .tef-field-label { float: none; width: auto; margin: 0; padding-top: 5px; font-weight: 600; }
#tef-product-data .tef-field input, #tef-product-data .tef-field textarea, #tef-product-data .tef-field select { float: none; width: 100%; margin: 0; min-width: 0; }
.tef-admin .tef-file-control { grid-template-columns: 110px minmax(0, 1fr) auto auto; align-items: center; }
.tef-admin .tef-file-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; overflow-wrap: anywhere; min-width: 0; }
.tef-admin .tef-file-preview img { width: 48px; height: 48px; object-fit: contain; }
.tef-admin .tef-error { color: #b32d2e; font-weight: 600; }
.tef-admin .tef-help { color: #646970; }
.tef-admin .tef-recovery-notice { padding: 12px; margin-bottom: 12px; background: #fff8e5; border-inline-start: 4px solid #dba617; }
#tef-product-data .tef-recovery-notice p { margin: 0 0 8px; padding: 0; }
.tef-admin .tef-recovery-notice button { margin-inline-end: 8px; }
@media (max-width: 1000px) {
    .tef-admin .tef-field, .tef-admin .tef-file-control { grid-template-columns: minmax(0, 1fr); }
}
