/* STP CX core — every rule is scoped under .stp-cx. Tokens are injected inline from settings. */
.stp-cx{box-sizing:border-box;color:var(--stp-text);font-family:var(--stp-font);font-size:var(--stp-font-size);font-weight:var(--stp-body-weight);line-height:1.55;-webkit-font-smoothing:antialiased}
.stp-cx *,.stp-cx *::before,.stp-cx *::after{box-sizing:border-box}
.stp-cx h1,.stp-cx h2,.stp-cx h3,.stp-cx h4{color:var(--stp-text);font-family:inherit;font-weight:var(--stp-heading-weight);letter-spacing:-.01em;line-height:1.25;margin:0 0 .6em;text-transform:none}
.stp-cx p{margin:0 0 .75em}
.stp-cx a{color:var(--stp-primary)}
.stp-cx .stp-cx-icon{flex:none;vertical-align:middle}
.stp-cx .stp-cx-muted{color:var(--stp-muted)}
.stp-cx .stp-cx-small{font-size:.85em}
.stp-cx .stp-cx-link{color:var(--stp-primary);font-weight:600;text-decoration:none}
.stp-cx .stp-cx-link:hover{text-decoration:underline}
.stp-cx .screen-reader-text{clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;position:absolute;width:1px;white-space:nowrap}

.stp-cx .stp-cx-card{background:var(--stp-surface);border:var(--stp-card-border) solid var(--stp-border);border-radius:var(--stp-radius-card);box-shadow:var(--stp-shadow);padding:var(--stp-card-padding)}
.stp-cx .stp-cx-page-title{font-size:1.6em;margin-block-end:.8em}

/* Fields (WooCommerce form-row markup) */
.stp-cx .form-row{display:flex;flex-direction:column;gap:6px;margin:0 0 16px;padding:0;float:none;width:100%}
.stp-cx .form-row label,.stp-cx label.stp-cx-label{color:var(--stp-text);display:block;font-size:.9em;font-weight:600;line-height:1.3;margin:0}
.stp-cx .form-row .required{color:var(--stp-error);text-decoration:none;border:0}
.stp-cx .form-row .optional{color:var(--stp-muted);font-weight:400}
.stp-cx input.input-text,.stp-cx textarea,.stp-cx select,.stp-cx .select2-container .select2-selection--single,
.stp-cx input[type=text],.stp-cx input[type=email],.stp-cx input[type=tel],.stp-cx input[type=password],.stp-cx input[type=number]{
	appearance:none;background-color:var(--stp-surface);border:1px solid var(--stp-border);border-radius:var(--stp-radius-field);box-shadow:none;color:var(--stp-text);font:inherit;height:var(--stp-field-height);line-height:1.3;margin:0;max-width:100%;padding:0 14px;transition:border-color .15s,box-shadow .15s;width:100%}
.stp-cx textarea{height:auto;min-height:96px;padding:12px 14px}
.stp-cx select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E");background-position:right 14px center;background-repeat:no-repeat;padding-inline-end:36px}
.stp-cx .select2-container .select2-selection--single{display:flex;align-items:center;padding:0 6px}
.stp-cx .select2-container .select2-selection--single .select2-selection__rendered{line-height:1.3;color:var(--stp-text)}
.stp-cx .select2-container .select2-selection--single .select2-selection__arrow{height:100%}
.stp-cx input:focus-visible,.stp-cx textarea:focus-visible,.stp-cx select:focus-visible,.stp-cx .select2-container--focus .select2-selection,.stp-cx .select2-container--open .select2-selection{border-color:var(--stp-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--stp-primary) 22%,transparent);outline:none}
.stp-cx .form-row.woocommerce-invalid input.input-text,.stp-cx .form-row.woocommerce-invalid select,.stp-cx .form-row.woocommerce-invalid .select2-selection,.stp-cx [aria-invalid=true]{border-color:var(--stp-error)}
.stp-cx .form-row .description{color:var(--stp-muted);font-size:.85em}
.stp-cx .stp-cx-field-error{color:var(--stp-error);font-size:.85em;font-weight:500;margin:2px 0 0}
.stp-cx input[type=checkbox],.stp-cx input[type=radio]{accent-color:var(--stp-primary);height:18px;margin:0;width:18px;flex:none}
.stp-cx .woocommerce-form__label-for-checkbox,.stp-cx .stp-cx-check{align-items:center;cursor:pointer;display:inline-flex;font-weight:500;gap:10px}
body.stp-cx-label-compact .stp-cx .form-row label{font-size:.75em;letter-spacing:.05em;text-transform:uppercase;color:var(--stp-muted)}

/* Buttons */
.stp-cx .stp-cx-btn,.stp-cx .button,.stp-cx button.button{align-items:center;background:var(--stp-surface);border:1px solid var(--stp-border);border-radius:var(--stp-radius-button);color:var(--stp-text);cursor:pointer;display:inline-flex;font:inherit;font-weight:600;gap:8px;justify-content:center;line-height:1.1;min-height:44px;padding:0 18px;text-decoration:none;transition:background .15s,border-color .15s}
.stp-cx .stp-cx-btn:hover,.stp-cx .button:hover{border-color:var(--stp-text);color:var(--stp-text)}
.stp-cx .stp-cx-btn--primary,.stp-cx .button.alt,.stp-cx #place_order{background:var(--stp-primary);border-color:var(--stp-primary);color:#fff}
.stp-cx .stp-cx-btn--primary:hover,.stp-cx .button.alt:hover,.stp-cx #place_order:hover{background:color-mix(in srgb,var(--stp-primary) 86%,#000);border-color:transparent;color:#fff}
.stp-cx .stp-cx-btn--sm{font-size:.9em;min-height:36px;padding:0 14px}
.stp-cx .stp-cx-btn--block{width:100%}
.stp-cx .stp-cx-btn:focus-visible,.stp-cx .button:focus-visible,.stp-cx a:focus-visible,.stp-cx button:focus-visible{outline:3px solid color-mix(in srgb,var(--stp-primary) 45%,transparent);outline-offset:2px}
.stp-cx .stp-cx-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}
.stp-cx .stp-cx-actions--center{justify-content:center}

/* Badges */
.stp-cx .stp-cx-badge{border-radius:999px;display:inline-flex;font-size:.78em;font-weight:600;line-height:1;padding:6px 10px;white-space:nowrap}
.stp-cx .stp-cx-badge--success{background:color-mix(in srgb,var(--stp-success) 12%,transparent);color:var(--stp-success)}
.stp-cx .stp-cx-badge--warning{background:color-mix(in srgb,var(--stp-warning) 14%,transparent);color:var(--stp-warning)}
.stp-cx .stp-cx-badge--error{background:color-mix(in srgb,var(--stp-error) 12%,transparent);color:var(--stp-error)}
.stp-cx .stp-cx-badge--info{background:color-mix(in srgb,var(--stp-primary) 12%,transparent);color:var(--stp-primary)}
.stp-cx .stp-cx-badge--muted{background:color-mix(in srgb,var(--stp-muted) 14%,transparent);color:var(--stp-muted)}

/* Notices: calm, readable */
.stp-cx .woocommerce-error,.stp-cx .woocommerce-message,.stp-cx .woocommerce-info,.stp-cx .woocommerce-notice{background:var(--stp-surface);border:1px solid var(--stp-border);border-inline-start:4px solid var(--stp-primary);border-radius:var(--stp-radius-card);color:var(--stp-text);list-style:none;margin:0 0 16px;padding:14px 16px}
.stp-cx .woocommerce-error{border-inline-start-color:var(--stp-error)}
.stp-cx .woocommerce-message{border-inline-start-color:var(--stp-success)}
.stp-cx .woocommerce-error::before,.stp-cx .woocommerce-message::before,.stp-cx .woocommerce-info::before{display:none}
.stp-cx .woocommerce-error li{margin:0 0 4px}

.stp-cx .stp-cx-empty{align-items:center;color:var(--stp-muted);display:flex;flex-direction:column;gap:10px;padding-block:48px;text-align:center}
.stp-cx .stp-cx-empty .stp-cx-icon{height:32px;width:32px}

/* WooCommerce tables rendered inside our shell (order details) */
.stp-cx table.shop_table{background:var(--stp-surface);border:1px solid var(--stp-border);border-collapse:separate;border-radius:var(--stp-radius-card);border-spacing:0;margin:0 0 20px;overflow:hidden;width:100%}
.stp-cx table.shop_table th,.stp-cx table.shop_table td{border:0;border-block-end:1px solid var(--stp-border);padding:12px 16px;text-align:start;vertical-align:top}
.stp-cx table.shop_table tr:last-child>*{border-block-end:0}
.stp-cx table.shop_table tfoot th{color:var(--stp-muted);font-weight:500}
.stp-cx address{background:var(--stp-surface);border:1px solid var(--stp-border);border-radius:var(--stp-radius-card);font-style:normal;padding:16px}

@media (prefers-reduced-motion:reduce){.stp-cx *{animation:none!important;transition:none!important}}

/* Theme neutralizers: full-width customer pages, no theme float grids inside our layout. */
body.stp-cx-page #secondary,body.stp-cx-page .widget-area.sidebar,body.stp-cx-checkout aside#secondary{display:none!important}
body.stp-cx-page #primary,body.stp-cx-page .content-area{width:100%!important;float:none!important;margin-left:0!important;margin-right:0!important;max-width:none}
