.ctfy-options { margin: 1rem 0; }
.ctfy-case-cards { border: 0; margin: 0 0 1rem; padding: 0; overflow-x: auto; white-space: nowrap; max-width: 100%; }
.variations tr[hidden] { display: none !important; }
.ctfy-case-cards legend { font-weight: 600; margin-bottom: .5rem; }
.ctfy-case-card { box-sizing: border-box; display: inline-flex; flex-direction: column; align-items: center; width: 76px; min-width: 76px; height: 110px; vertical-align: top; margin: 0 6px 8px 0; padding: 6px 3px; border: 1px solid #dedede; border-radius: 15px; cursor: pointer; text-align: center; font-size: 12px; line-height: 1.25; white-space: normal; }
.ctfy-case-card:has(input:checked) { border: 2px solid #111; padding: 5px 2px; }
.ctfy-case-card:focus-within { outline: 2px solid #245bb4; outline-offset: 2px; }
.ctfy-case-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ctfy-case-card img { width: 64px; height: 72px; object-fit: contain; }
.ctfy-option-group { border: 0; margin: 0 0 1rem; padding: 0; overflow-x: auto; white-space: nowrap; max-width: 100%; }
.ctfy-option-group legend { font-weight: 600; margin-bottom: .5rem; }
.ctfy-option-group .ctfy-option-card { box-sizing: border-box; display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 4px; vertical-align: top; width: auto; min-height: 40px; margin: 0 6px 6px 0; padding: 3px 10px 3px 4px; border: 1px solid #dedede; border-radius: 22px; cursor: pointer; text-align: center; line-height: 1.2; white-space: nowrap; }
.ctfy-option-group .ctfy-option-card:has(input:checked) { border: 2px solid #111; padding: 2px 9px 2px 3px; }
.ctfy-option-group .ctfy-option-card:focus-within { outline: 2px solid #245bb4; outline-offset: 2px; }
.ctfy-option-group .ctfy-option-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ctfy-option-group .ctfy-option-card img { width: 32px; height: 32px; object-fit: contain; flex: none; }
.ctfy-option-group .ctfy-option-card span { font-size: .85rem; }
.ctfy-option-group small { color: #666; font-size: 11px; }
.ctfy-option-group[data-key^="color_"] .ctfy-option-card { width: 28px; min-width: 28px; height: 28px; min-height: 28px; padding: 2px; margin-right: 8px; border-radius: 50%; }
.ctfy-option-group[data-key^="color_"] .ctfy-option-card:has(input:checked) { padding: 1px; }
.ctfy-color-swatch { display: block; width: 20px; height: 20px; border: 1px solid #999; border-radius: 50%; background: var(--ctfy-swatch); }
.ctfy-color-name { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ctfy-related-designs { margin: 0 0 1rem; }
.ctfy-related-designs-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.ctfy-related-designs strong { font-size: .85rem; }
.ctfy-related-expand summary { cursor: pointer; color: #777; font-size: .78rem; list-style: none; }
.ctfy-related-expand summary::-webkit-details-marker { display: none; }
.ctfy-related-expand .ctfy-collapse-label { display: none; }
.ctfy-related-expand[open] .ctfy-expand-label { display: none; }
.ctfy-related-expand[open] .ctfy-collapse-label { display: inline; }
.ctfy-related-designs-list { display: flex; gap: 6px; max-width: 100%; overflow-x: auto; padding-bottom: 4px; }
.ctfy-related-designs:has(.ctfy-related-expand:not([open])) .ctfy-related-design:nth-child(n+6) { display: none; }
.ctfy-related-designs:has(.ctfy-related-expand[open]) .ctfy-related-designs-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-width: 420px; overflow: visible; padding-bottom: 0; }
.ctfy-related-design { box-sizing: border-box; flex: 0 0 72px; width: 72px; height: 94px; padding: 4px; border: 1px solid #dedede; border-radius: 14px; }
.ctfy-related-designs:has(.ctfy-related-expand[open]) .ctfy-related-design { width: 100%; height: auto; max-height: 165px; aspect-ratio: 4 / 5; padding: 8px; }
.ctfy-related-designs:has(.ctfy-related-expand[open]) .ctfy-related-design.is-current { padding: 7px; }
.ctfy-related-design.is-current { border: 2px solid #111; padding: 3px; }
.ctfy-related-design:focus-visible { outline: 2px solid #245bb4; outline-offset: 2px; }
.ctfy-related-design img { width: 100%; height: 100%; object-fit: contain; }
.ctfy-option-total { font-weight: 700; }
.ctfy-simple-options { margin: 1rem 0; }
.ctfy-simple-brands { display: flex; gap: 8px; margin: 0 0 1rem; }
.ctfy-simple-brands button { border: 1px solid #dedede; border-radius: 999px; background: #fff; padding: 7px 18px; cursor: pointer; }
.ctfy-simple-brands button[aria-pressed="true"] { border-color: #111; color: #111; }
.ctfy-simple-model { display: block; margin-bottom: 1rem; font-weight: 500; }
.ctfy-simple-model select { display: block; width: 100%; min-height: 42px; margin-top: .35rem; padding: 5px 10px; border: 1px solid #dedede; background: #fff; }
.ctfy-simple-case-cards { white-space: normal; }
.ctfy-simple-case-cards .ctfy-case-card { width: 70px; min-width: 70px; height: 92px; margin-right: 4px; font-size: 11px; }
.ctfy-simple-case-cards .ctfy-case-card img { width: 56px; height: 58px; }
.ctfy-simple-axes fieldset { border: 0; margin: 0 0 .8rem; padding: 0; }
.ctfy-simple-axes legend { margin-bottom: .45rem; font-weight: 600; }
.ctfy-simple-choice { box-sizing: border-box; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 72px; min-height: 78px; margin: 0 4px 6px 0; padding: 4px 3px; border: 1px solid #dedede; border-radius: 13px; vertical-align: top; cursor: pointer; text-align: center; font-size: 11px; line-height: 1.15; }
.ctfy-simple-choice:has(input:checked) { border: 2px solid #111; padding: 3px 2px; }
.ctfy-simple-choice:focus-within { outline: 2px solid #245bb4; outline-offset: 2px; }
.ctfy-simple-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ctfy-simple-choice img { width: 46px; height: 43px; object-fit: contain; }
.ctfy-simple-choice span { white-space: normal; overflow-wrap: anywhere; }
.ctfy-simple-choice small { color: #777; font-size: 10px; line-height: 1.15; }
.ctfy-simple-axis:is(:has(input[name="ctfy_axis_color"]), :has(input[name="ctfy_axis_material_plate"]), :has(input[name="ctfy_axis_additional_features"]), :has(input[name="ctfy_axis_magsafe_property"])) .ctfy-simple-choice { width: auto; min-height: 40px; flex-direction: row; gap: 4px; padding: 3px 10px 3px 4px; border-radius: 999px; white-space: nowrap; }
.ctfy-simple-axis:is(:has(input[name="ctfy_axis_color"]), :has(input[name="ctfy_axis_material_plate"]), :has(input[name="ctfy_axis_additional_features"]), :has(input[name="ctfy_axis_magsafe_property"])) .ctfy-simple-choice:has(input:checked) { padding: 2px 9px 2px 3px; }
.ctfy-simple-axis:is(:has(input[name="ctfy_axis_color"]), :has(input[name="ctfy_axis_material_plate"]), :has(input[name="ctfy_axis_additional_features"]), :has(input[name="ctfy_axis_magsafe_property"])) .ctfy-simple-choice img { width: 32px; height: 32px; flex: none; border-radius: 50%; object-fit: contain; }
.ctfy-simple-axis:is(:has(input[name="ctfy_axis_color"]), :has(input[name="ctfy_axis_material_plate"]), :has(input[name="ctfy_axis_additional_features"]), :has(input[name="ctfy_axis_magsafe_property"])) .ctfy-simple-choice span,
.ctfy-simple-axis:is(:has(input[name="ctfy_axis_color"]), :has(input[name="ctfy_axis_material_plate"]), :has(input[name="ctfy_axis_additional_features"]), :has(input[name="ctfy_axis_magsafe_property"])) .ctfy-simple-choice small { white-space: nowrap; overflow-wrap: normal; }
.ctfy-simple-total { margin: .75rem 0; font-weight: 700; }
