/*
Theme Name: Igneos Base
Description: Base clásica ligera para los documentos nativos de Igneos. Candidato Local.
Author: Igneos
Version: 0.1.1
Requires at least: 6.7
Requires PHP: 8.0
Text Domain: igneos-base
*/

/* Small browser normalization; detailed layouts remain in the site plugins. */
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
main { display: block; }
button, input, optgroup, select, textarea { font: inherit; margin: 0; }
button, select { text-transform: none; }
button, [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; }
button, [role="button"], summary { cursor: pointer; }
img { border-style: none; max-width: 100%; height: auto; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
a { text-decoration: none; }
abbr[title] { text-decoration: underline dotted; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.igneos-base-fallback__content { box-sizing: border-box; width: min(1200px, calc(100% - 40px)); min-height: 55vh; margin: 40px auto; }
.igneos-base-fallback__content a { text-decoration: underline; }
.igneos-base-fallback__content article + article { margin-top: 32px; }
.igneos-base-fallback__content input, .igneos-base-fallback__content select, .igneos-base-fallback__content textarea { max-width: 100%; }
.igneos-base-fallback__content .wp-block-table { overflow-x: auto; }
.igneos-base-fallback__content th, .igneos-base-fallback__content td { padding: 10px; border: 1px solid #ddd; }
.igneos-base-fallback__content .alignwide, .igneos-base-fallback__content .alignfull { max-width: 100%; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed; top: 8px; left: 8px; z-index: 100000; width: auto; height: auto; margin: 0; padding: 12px; clip: auto; background: white; color: black; }

/* Keep native EPO controls, with compact arrow space independent of Woodmart. */
body.igneos-base.igneos-storefront .tm-extra-product-options select.tmcp-select:not([multiple]):not(.select2-hidden-accessible) {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-left: 12px;
    padding-right: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%23172943' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.4'/%3E%3C/svg%3E");
    background-position: right 4px center;
    background-size: 8px 6px;
    background-repeat: no-repeat;
}
body.igneos-base.sos-site .tm-extra-product-options select.tmcp-select:not([multiple]):not(.select2-hidden-accessible) {
    padding-right: 16px !important;
    background-position: right 4px center !important;
    background-size: 8px 6px !important;
}
body.igneos-base.igneos-storefront .tm-extra-product-options :is(input.tmcp-textfield, textarea.tmcp-field) {
    padding-left: 12px;
    padding-right: 12px;
}
/* Hide only the visual steppers; keep number semantics and keyboard input. */
body.igneos-base .tm-extra-product-options input.tmcp-textfield[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}
body.igneos-base .tm-extra-product-options input.tmcp-textfield[type="number"]::-webkit-inner-spin-button,
body.igneos-base .tm-extra-product-options input.tmcp-textfield[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
