/* IlgazFest checkout fields, legal pages and order tracking: the store's ice-blue surfaces and blue controls. */

/* Invoice type: two large choices, like the package options. */
.if-invoice-type,.woocommerce form .form-row.if-invoice-type{border:0;padding:3px;margin:6px 0 12px;min-width:0;clear:both;background:none}
.if-invoice-type legend{float:left;width:100%;padding:0;margin:0 0 4px;font:inherit;line-height:2;color:inherit}
.if-invoice-type__options{clear:both;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.if-invoice-type__option{position:relative;display:block;margin:0;cursor:pointer}
.if-invoice-type__option input{position:absolute;width:1px;height:1px;opacity:0}
.if-invoice-type__option span{display:flex;align-items:center;justify-content:center;min-height:48px;padding:10px 12px;border-radius:7px;background:#fff;color:#37556e;font-size:18px;line-height:1.4;box-shadow:inset 0 0 0 1px #cfdeea;transition:background .15s}
.if-invoice-type__option input:checked+span{background:#e2edff;color:#124fc1;font-weight:600;box-shadow:inset 0 0 0 1.5px #326ef2}
.if-invoice-type__option input:focus-visible+span{outline:3px solid #2f76de;outline-offset:3px}
.if-invoice-row[hidden]{display:none!important}
/* A single selling country is shown as plain text by WooCommerce; it adds nothing to the form.
   !important: address-i18n.js calls jQuery .show(), which writes an inline display value. */
#billing_country_field:has(.country_to_state--single,input[type=hidden]){display:none!important}
.if-invoice-summary{margin-top:10px;font-size:17px;color:#526b81}

/* My Account address form uses the same inputs as checkout. */
.woocommerce-address-fields .form-row .input-text,.woocommerce-address-fields .form-row select{width:100%;min-height:48px;font-size:19px;border:1px solid #cfdeea;border-radius:7px;background:#fff;padding:11px 14px;color:#173953}
.woocommerce-address-fields .select2-selection--single{height:48px;border:1px solid #cfdeea;border-radius:7px}
.woocommerce-address-fields .select2-selection__rendered{line-height:46px;padding-left:14px}
.woocommerce-address-fields .select2-selection__arrow{height:46px}

/* Consent texts and the two documents that open in place at checkout. */
.woocommerce-terms-and-conditions-wrapper .woocommerce-privacy-policy-text a,.woocommerce-terms-and-conditions-checkbox-text a{color:#175bd4;text-decoration:underline;text-underline-offset:3px}
.if-legal-box{max-height:260px;overflow:auto;margin:0 0 14px;padding:16px 18px;background:#fff;border:1px solid #dbe6ee;border-radius:8px;font-size:16px;line-height:1.7;color:#365870}
.if-legal-box h2,.if-legal-box h3{font-size:18px!important;margin:14px 0 6px;color:#173953;background:none;-webkit-text-fill-color:currentColor}
.if-legal-box p,.if-legal-box ul{margin:0 0 8px}.if-legal-box ul{padding-left:18px}
.if-legal-box .if-legal-order{background:#eff5fa;border-radius:6px;padding:10px 12px}

/* Admin-only markers on legal pages. */
.if-legal-review-note{margin:0 0 24px;padding:12px 16px;border-left:4px solid #e0a800;border-radius:6px;background:#fff7d6;color:#5c4400;font-size:17px;line-height:1.6}
.if-legal-missing{padding:0 4px;border-radius:3px;background:#fff3b0;color:#5c4400!important;text-decoration:none!important}

/* Legal pages: a calm, readable column on the white store surface. */
body.if-legal-page .if-wc-page>.container{max-width:880px}
body.if-legal-page .if-wc-page>.container>:is(h2,h3){margin:36px 0 12px;font:700 clamp(23px,2.18vw,26px)/1.35 Montserrat,Arial,sans-serif;letter-spacing:-.02em;color:#173953;background:none;-webkit-text-fill-color:currentColor}
body.if-legal-page .if-wc-page>.container>p,body.if-legal-page .if-wc-page>.container>ul>li{font-size:19px;line-height:1.8;color:#365870}
body.if-legal-page .if-wc-page>.container>p{margin:0 0 16px}
body.if-legal-page .if-wc-page>.container>ul{margin:0 0 18px;padding-left:22px;list-style:disc}
body.if-legal-page .if-wc-page>.container>ul>li{margin:6px 0}
body.if-legal-page .if-wc-page>.container a:not(.button){color:#175bd4;text-decoration:underline;text-underline-offset:3px}
body.if-legal-page .if-legal-order{padding:14px 18px;border-radius:8px;background:#eff5fa}
body.if-legal-page .wp-block-table{margin:0 0 20px;overflow-x:auto}
body.if-legal-page .wp-block-table table{width:100%;border-collapse:collapse;font-size:17px;line-height:1.6;color:#365870}
body.if-legal-page .wp-block-table :is(th,td){padding:10px 12px;border:1px solid #dbe6ee;text-align:left;vertical-align:top}
body.if-legal-page .wp-block-table th{background:#eff5fa;color:#173953;font-weight:600}

/* Order tracking: the same card and button as the account forms. */
.woocommerce-form-track-order{max-width:680px;margin:0 0 24px;padding:28px;border:0;border-radius:12px;background:#eff5fa}
.woocommerce-form-track-order>p:first-child{margin:0 0 18px;font-size:18px;line-height:1.7;color:#526b81}
.woocommerce-form-track-order .form-row{padding:0;margin:0 0 16px}
.woocommerce-form-track-order .form-row label{display:block;margin-bottom:7px;font-size:17px;font-weight:500;color:#284b66}
.woocommerce form.woocommerce-form-track-order .form-row .input-text{width:100%;min-height:48px;padding:11px 14px;border:1px solid #cfdeea;border-radius:7px;background:#fff;font-size:19px;color:#173953;box-shadow:none}
.woocommerce form.woocommerce-form-track-order .form-row .input-text:focus{border-color:#1769ec;outline:2px solid #1769ec33}
.woocommerce-form-track-order .button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 24px;border:1px solid #1658c7;border-radius:7px;background:#1769ec;color:#fff;font:600 18px/1.4 Geist,sans-serif;box-shadow:0 3px 0 #124fae,inset 0 1px #ffffff55}
.woocommerce-form-track-order .button:hover{background:#145ed4;color:#fff}
@media(max-width:680px){.woocommerce-form-track-order{padding:20px}.woocommerce-form-track-order .form-row-first,.woocommerce-form-track-order .form-row-last{float:none;width:100%}}
@media(prefers-reduced-motion:reduce){.if-invoice-type__option span{transition:none}}
@media(forced-colors:active){.if-invoice-type__option span{border:1px solid ButtonText}.if-invoice-type__option input:checked+span{outline:2px solid Highlight}}
