/* Shared WooCommerce surfaces: notices, tables, order panels and country/state Select2 fields. */
/* Consistent 8px corners for visible WooCommerce panels, tables and filled surfaces. */
/* Round actual surfaced components, not generic layout-only divs. */
body.woocommerce .woocommerce-message,
body.woocommerce .woocommerce-info,
body.woocommerce .woocommerce-error,
body.woocommerce-page .woocommerce-message,
body.woocommerce-page .woocommerce-info,
body.woocommerce-page .woocommerce-error,
body.woocommerce .woocommerce-notices-wrapper .woocommerce-message,
body.woocommerce .woocommerce-notices-wrapper .woocommerce-info,
body.woocommerce .woocommerce-notices-wrapper .woocommerce-error,
body.woocommerce-page .woocommerce-notices-wrapper .woocommerce-message,
body.woocommerce-page .woocommerce-notices-wrapper .woocommerce-info,
body.woocommerce-page .woocommerce-notices-wrapper .woocommerce-error {
  border-radius: 8px !important;
}
body.woocommerce table.shop_table,
body.woocommerce-page table.shop_table,
body.woocommerce table.woocommerce-orders-table,
body.woocommerce-page table.woocommerce-orders-table,
body.woocommerce table.woocommerce-table--order-details,
body.woocommerce-page table.woocommerce-table--order-details,
body.woocommerce table.woocommerce-table--customer-details,
body.woocommerce-page table.woocommerce-table--customer-details,
body.woocommerce table.woocommerce-checkout-review-order-table,
body.woocommerce-page table.woocommerce-checkout-review-order-table {
  box-sizing: border-box;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 8px !important;
  overflow: hidden;
}
body.woocommerce .woocommerce-checkout-review-order,
body.woocommerce-page .woocommerce-checkout-review-order,
body.woocommerce #payment,
body.woocommerce-page #payment,
body.woocommerce .woocommerce-checkout-payment,
body.woocommerce-page .woocommerce-checkout-payment,
body.woocommerce .cart_totals,
body.woocommerce-page .cart_totals,
body.woocommerce .woocommerce-form-coupon-toggle,
body.woocommerce-page .woocommerce-form-coupon-toggle,
body.woocommerce .woocommerce-form-login-toggle,
body.woocommerce-page .woocommerce-form-login-toggle,
body.woocommerce .woocommerce-form-shipping-toggle,
body.woocommerce-page .woocommerce-form-shipping-toggle {
  border-radius: 8px !important;
}
body.woocommerce form.checkout_coupon,
body.woocommerce form.login,
body.woocommerce form.register,
body.woocommerce-page form.checkout_coupon,
body.woocommerce-page form.login,
body.woocommerce-page form.register {
  border-radius: 8px !important;
}
body.woocommerce .woocommerce-order,
body.woocommerce-page .woocommerce-order,
body.woocommerce .woocommerce-order-details,
body.woocommerce-page .woocommerce-order-details,
body.woocommerce .woocommerce-customer-details,
body.woocommerce-page .woocommerce-customer-details,
body.woocommerce .woocommerce-column,
body.woocommerce-page .woocommerce-column,
body.woocommerce .woocommerce-Addresses .woocommerce-Address,
body.woocommerce-page .woocommerce-Addresses .woocommerce-Address,
body.woocommerce .woocommerce-MyAccount-content .woocommerce-Address,
body.woocommerce-page .woocommerce-MyAccount-content .woocommerce-Address,
body.woocommerce .woocommerce-PaymentMethods,
body.woocommerce-page .woocommerce-PaymentMethods {
  border-radius: 8px !important;
}
body.woocommerce .woocommerce-MyAccount-content table,
body.woocommerce-page .woocommerce-MyAccount-content table,
body.woocommerce .woocommerce-order-details table,
body.woocommerce-page .woocommerce-order-details table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 8px !important;
  overflow: hidden;
}
body.woocommerce .woocommerce-checkout #order_review_heading,
body.woocommerce-page .woocommerce-checkout #order_review_heading {
  border-radius: 8px 8px 0 0 !important;
}
body.woocommerce .woocommerce-checkout #order_review,
body.woocommerce-page .woocommerce-checkout #order_review {
  border-radius: 0 0 8px 8px !important;
}
body.woocommerce .woocommerce .select2-dropdown,
body.woocommerce-page .woocommerce .select2-dropdown {
  border-radius: 8px !important;
}
/* One stable country/state arrow before and after SelectWoo initialization. */
/* The wrapper owns the arrow in both states; native and plugin arrows are suppressed. */
body.woocommerce .woocommerce-input-wrapper:has(> select.country_select),
body.woocommerce .woocommerce-input-wrapper:has(> select.state_select),
body.woocommerce-page .woocommerce-input-wrapper:has(> select.country_select),
body.woocommerce-page .woocommerce-input-wrapper:has(> select.state_select),
body.woocommerce-account .woocommerce-input-wrapper:has(> select.country_select),
body.woocommerce-account .woocommerce-input-wrapper:has(> select.state_select) {
}
body.woocommerce .woocommerce-input-wrapper:has(> select.country_select)::after,
body.woocommerce .woocommerce-input-wrapper:has(> select.state_select)::after,
body.woocommerce-page .woocommerce-input-wrapper:has(> select.country_select)::after,
body.woocommerce-page .woocommerce-input-wrapper:has(> select.state_select)::after,
body.woocommerce-account .woocommerce-input-wrapper:has(> select.country_select)::after,
body.woocommerce-account .woocommerce-input-wrapper:has(> select.state_select)::after {
  content: "" !important;
  position: absolute !important;
  z-index: 5 !important;
  top: 50% !important;
  right: 17px !important;
  display: block !important;
  width: 7px !important;
  height: 7px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-right: 1.8px solid var(--pssk-ui-muted-foreground) !important;
  border-bottom: 1.8px solid var(--pssk-ui-muted-foreground) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none !important;
  opacity: 1 !important;
  transform: translateY(-70%) rotate(45deg) !important;
  transform-origin: center !important;
  transition: transform .18s ease, border-color .18s ease !important;
}
body.woocommerce .woocommerce-input-wrapper:has(> select.country_select:focus:not(.select2-hidden-accessible))::after,
body.woocommerce .woocommerce-input-wrapper:has(> select.state_select:focus:not(.select2-hidden-accessible))::after,
body.woocommerce-page .woocommerce-input-wrapper:has(> select.country_select:focus:not(.select2-hidden-accessible))::after,
body.woocommerce-page .woocommerce-input-wrapper:has(> select.state_select:focus:not(.select2-hidden-accessible))::after,
body.woocommerce-account .woocommerce-input-wrapper:has(> select.country_select:focus:not(.select2-hidden-accessible))::after,
body.woocommerce-account .woocommerce-input-wrapper:has(> select.state_select:focus:not(.select2-hidden-accessible))::after,
body.woocommerce .woocommerce-input-wrapper:has(.select2-selection[aria-expanded="true"])::after,
body.woocommerce-page .woocommerce-input-wrapper:has(.select2-selection[aria-expanded="true"])::after,
body.woocommerce-account .woocommerce-input-wrapper:has(.select2-selection[aria-expanded="true"])::after,
body.woocommerce .woocommerce-input-wrapper:has(.select2-container--open)::after,
body.woocommerce-page .woocommerce-input-wrapper:has(.select2-container--open)::after,
body.woocommerce-account .woocommerce-input-wrapper:has(.select2-container--open)::after {
  border-right-color: var(--pssk-ui-primary) !important;
  border-bottom-color: var(--pssk-ui-primary) !important;
  transform: translateY(-25%) rotate(225deg) !important;
}
body.woocommerce .woocommerce-input-wrapper > select.country_select,
body.woocommerce .woocommerce-input-wrapper > select.state_select,
body.woocommerce-page .woocommerce-input-wrapper > select.country_select,
body.woocommerce-page .woocommerce-input-wrapper > select.state_select,
body.woocommerce-account .woocommerce-input-wrapper > select.country_select,
body.woocommerce-account .woocommerce-input-wrapper > select.state_select {
  box-sizing: border-box !important;
  width: 100% !important;
  padding-right: 44px !important;
  background-image: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}
body.woocommerce .woocommerce-input-wrapper:has(> select.country_select) .select2-container--default .select2-selection--single .select2-selection__arrow,
body.woocommerce .woocommerce-input-wrapper:has(> select.state_select) .select2-container--default .select2-selection--single .select2-selection__arrow,
body.woocommerce-page .woocommerce-input-wrapper:has(> select.country_select) .select2-container--default .select2-selection--single .select2-selection__arrow,
body.woocommerce-page .woocommerce-input-wrapper:has(> select.state_select) .select2-container--default .select2-selection--single .select2-selection__arrow,
body.woocommerce-account .woocommerce-input-wrapper:has(> select.country_select) .select2-container--default .select2-selection--single .select2-selection__arrow,
body.woocommerce-account .woocommerce-input-wrapper:has(> select.state_select) .select2-container--default .select2-selection--single .select2-selection__arrow {
  display: none !important;
}
body.woocommerce .woocommerce-input-wrapper:has(> select.country_select) .select2-selection__rendered,
body.woocommerce .woocommerce-input-wrapper:has(> select.state_select) .select2-selection__rendered,
body.woocommerce-page .woocommerce-input-wrapper:has(> select.country_select) .select2-selection__rendered,
body.woocommerce-page .woocommerce-input-wrapper:has(> select.state_select) .select2-selection__rendered,
body.woocommerce-account .woocommerce-input-wrapper:has(> select.country_select) .select2-selection__rendered,
body.woocommerce-account .woocommerce-input-wrapper:has(> select.state_select) .select2-selection__rendered {
  padding-right: 44px !important;
}
@media (prefers-reduced-motion: reduce) {
  body.woocommerce .woocommerce-input-wrapper:has(> select.country_select)::after,
  body.woocommerce .woocommerce-input-wrapper:has(> select.state_select)::after,
  body.woocommerce-page .woocommerce-input-wrapper:has(> select.country_select)::after,
  body.woocommerce-page .woocommerce-input-wrapper:has(> select.state_select)::after,
  body.woocommerce-account .woocommerce-input-wrapper:has(> select.country_select)::after,
  body.woocommerce-account .woocommerce-input-wrapper:has(> select.state_select)::after {
    transition: none !important;
  }
}
/* Normalize country/state select dimensions in native and SelectWoo states; override Astra dotted focus borders. */
body.woocommerce .woocommerce-input-wrapper:has(> select.country_select),
body.woocommerce .woocommerce-input-wrapper:has(> select.state_select),
body.woocommerce-page .woocommerce-input-wrapper:has(> select.country_select),
body.woocommerce-page .woocommerce-input-wrapper:has(> select.state_select),
body.woocommerce-account .woocommerce-input-wrapper:has(> select.country_select),
body.woocommerce-account .woocommerce-input-wrapper:has(> select.state_select) {
  box-sizing: border-box !important; display: block !important; position: relative !important;
  width: 100% !important; min-width: 0 !important; height: 44px !important; min-height: 44px !important; max-height: 44px !important;
  line-height: normal !important;
}
body.woocommerce .woocommerce-input-wrapper > select.country_select:not(.select2-hidden-accessible),
body.woocommerce .woocommerce-input-wrapper > select.state_select:not(.select2-hidden-accessible),
body.woocommerce-page .woocommerce-input-wrapper > select.country_select:not(.select2-hidden-accessible),
body.woocommerce-page .woocommerce-input-wrapper > select.state_select:not(.select2-hidden-accessible),
body.woocommerce-account .woocommerce-input-wrapper > select.country_select:not(.select2-hidden-accessible),
body.woocommerce-account .woocommerce-input-wrapper > select.state_select:not(.select2-hidden-accessible) {
  box-sizing: border-box !important; display: block !important; width: 100% !important;
  height: 44px !important; min-height: 44px !important; max-height: 44px !important;
  margin: 0 !important; padding: 0 44px 0 12px !important;
  border: 1px solid var(--pssk-ui-border) !important; border-style: solid !important; border-radius: 6px !important;
  background-color: var(--pssk-ui-card) !important; background-image: none !important;
  box-shadow: none !important; outline: none !important;
  font: 400 14px/1.4 var(--pssk-ui-font-sans) !important;
  appearance: none !important; -webkit-appearance: none !important;
}
body.woocommerce .woocommerce-input-wrapper:has(> select.country_select) > .select2-container,
body.woocommerce .woocommerce-input-wrapper:has(> select.state_select) > .select2-container,
body.woocommerce-page .woocommerce-input-wrapper:has(> select.country_select) > .select2-container,
body.woocommerce-page .woocommerce-input-wrapper:has(> select.state_select) > .select2-container,
body.woocommerce-account .woocommerce-input-wrapper:has(> select.country_select) > .select2-container,
body.woocommerce-account .woocommerce-input-wrapper:has(> select.state_select) > .select2-container {
  box-sizing: border-box !important; display: block !important; width: 100% !important;
  height: 44px !important; min-height: 44px !important; max-height: 44px !important;
  margin: 0 !important; padding: 0 !important; line-height: normal !important;
}
body.woocommerce .woocommerce-input-wrapper:has(> select.country_select) .select2-selection--single,
body.woocommerce .woocommerce-input-wrapper:has(> select.state_select) .select2-selection--single,
body.woocommerce-page .woocommerce-input-wrapper:has(> select.country_select) .select2-selection--single,
body.woocommerce-page .woocommerce-input-wrapper:has(> select.state_select) .select2-selection--single,
body.woocommerce-account .woocommerce-input-wrapper:has(> select.country_select) .select2-selection--single,
body.woocommerce-account .woocommerce-input-wrapper:has(> select.state_select) .select2-selection--single {
  box-sizing: border-box !important; display: block !important; width: 100% !important;
  height: 44px !important; min-height: 44px !important; max-height: 44px !important;
  margin: 0 !important; padding: 0 !important;
  border: 1px solid var(--pssk-ui-border) !important; border-style: solid !important; border-radius: 6px !important;
  background: var(--pssk-ui-card) !important; box-shadow: none !important; outline: none !important; line-height: normal !important;
  transition: border-color .16s ease, box-shadow .16s ease !important;
}
body.woocommerce #content .woocommerce form .form-row .select2-container--default .select2-selection--single:focus,
body.woocommerce #content .woocommerce form .form-row .select2-container--default .select2-selection--single:focus-visible,
body.woocommerce #content .woocommerce form .form-row .select2-container--default.select2-container--focus .select2-selection--single,
body.woocommerce #content .woocommerce form .form-row .select2-container--default.select2-container--open .select2-selection--single,
body.woocommerce-page #content .woocommerce form .form-row .select2-container--default .select2-selection--single:focus,
body.woocommerce-page #content .woocommerce form .form-row .select2-container--default .select2-selection--single:focus-visible,
body.woocommerce-page #content .woocommerce form .form-row .select2-container--default.select2-container--focus .select2-selection--single,
body.woocommerce-page #content .woocommerce form .form-row .select2-container--default.select2-container--open .select2-selection--single,
body.woocommerce-account #content .woocommerce form .form-row .select2-container--default .select2-selection--single:focus,
body.woocommerce-account #content .woocommerce form .form-row .select2-container--default .select2-selection--single:focus-visible,
body.woocommerce-account #content .woocommerce form .form-row .select2-container--default.select2-container--focus .select2-selection--single,
body.woocommerce-account #content .woocommerce form .form-row .select2-container--default.select2-container--open .select2-selection--single {
  border: 1px solid var(--pssk-ui-primary) !important; border-style: solid !important;
  outline: none !important; box-shadow: 0 0 0 3px rgba(189, 62, 39, .16) !important;
}
body.woocommerce .woocommerce-input-wrapper:has(> select.country_select) .select2-selection__rendered,
body.woocommerce .woocommerce-input-wrapper:has(> select.state_select) .select2-selection__rendered,
body.woocommerce-page .woocommerce-input-wrapper:has(> select.country_select) .select2-selection__rendered,
body.woocommerce-page .woocommerce-input-wrapper:has(> select.state_select) .select2-selection__rendered,
body.woocommerce-account .woocommerce-input-wrapper:has(> select.country_select) .select2-selection__rendered,
body.woocommerce-account .woocommerce-input-wrapper:has(> select.state_select) .select2-selection__rendered {
  box-sizing: border-box !important; display: block !important; width: auto !important;
  height: 42px !important; min-height: 42px !important; max-height: 42px !important;
  margin: 0 !important; padding: 0 44px 0 12px !important;
  line-height: 42px !important; font: 400 14px/42px var(--pssk-ui-font-sans) !important;
}
body.woocommerce .woocommerce-input-wrapper:has(> select.country_select) .select2-container--default .select2-selection--single:focus,
body.woocommerce .woocommerce-input-wrapper:has(> select.state_select) .select2-container--default .select2-selection--single:focus,
body.woocommerce-page .woocommerce-input-wrapper:has(> select.country_select) .select2-container--default .select2-selection--single:focus,
body.woocommerce-page .woocommerce-input-wrapper:has(> select.state_select) .select2-container--default .select2-selection--single:focus,
body.woocommerce-account .woocommerce-input-wrapper:has(> select.country_select) .select2-container--default .select2-selection--single:focus,
body.woocommerce-account .woocommerce-input-wrapper:has(> select.state_select) .select2-container--default .select2-selection--single:focus,
body.woocommerce .woocommerce-input-wrapper:has(.select2-container--open) .select2-selection--single,
body.woocommerce-page .woocommerce-input-wrapper:has(.select2-container--open) .select2-selection--single,
body.woocommerce-account .woocommerce-input-wrapper:has(.select2-container--open) .select2-selection--single {
  border-style: solid !important;
}
@media (prefers-reduced-motion: reduce) {
  body.woocommerce .woocommerce-input-wrapper:has(> select.country_select) .select2-selection--single,
  body.woocommerce .woocommerce-input-wrapper:has(> select.state_select) .select2-selection--single,
  body.woocommerce-page .woocommerce-input-wrapper:has(> select.country_select) .select2-selection--single,
  body.woocommerce-page .woocommerce-input-wrapper:has(> select.state_select) .select2-selection--single,
  body.woocommerce-account .woocommerce-input-wrapper:has(> select.country_select) .select2-selection--single,
  body.woocommerce-account .woocommerce-input-wrapper:has(> select.state_select) .select2-selection--single {
    transition: none !important;
  }
}
/* Align WooCommerce info notice accent with PatternSouk terracotta. */
body.woocommerce .woocommerce-info,
body.woocommerce-page .woocommerce-info {
  border-top-color: var(--pssk-ui-primary) !important;
}
body.woocommerce .woocommerce-info::before,
body.woocommerce-page .woocommerce-info::before {
  color: var(--pssk-ui-primary) !important;
}
/* Align WooCommerce info notice links with PatternSouk terracotta. */
body.woocommerce .woocommerce-info a,
body.woocommerce-page .woocommerce-info a,
body.woocommerce .woocommerce-info a:visited,
body.woocommerce-page .woocommerce-info a:visited {
  color: var(--pssk-ui-primary) !important;
  text-decoration: underline;
  text-decoration-color: rgba(189, 62, 39, .45);
  text-underline-offset: 2px;
}
body.woocommerce .woocommerce-info a:hover,
body.woocommerce-page .woocommerce-info a:hover {
  color: var(--pssk-ui-primary-hover) !important;
  text-decoration-color: currentColor;
}
body.woocommerce .woocommerce-info a:focus-visible,
body.woocommerce-page .woocommerce-info a:focus-visible {
  color: var(--pssk-ui-primary-hover) !important;
  outline: 2px solid var(--pssk-ui-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* PatternSouk WooCommerce content links use the site accent. */
body.woocommerce .site-content .woocommerce a:not(.button):not(.wp-element-button):not(.added_to_cart),
body.woocommerce-page .site-content .woocommerce a:not(.button):not(.wp-element-button):not(.added_to_cart),
body.woocommerce .site-content .woocommerce a:not(.button):not(.wp-element-button):not(.added_to_cart):visited,
body.woocommerce-page .site-content .woocommerce a:not(.button):not(.wp-element-button):not(.added_to_cart):visited {
    color: var(--pssk-ui-primary);
}
body.woocommerce .site-content .woocommerce a:not(.button):not(.wp-element-button):not(.added_to_cart):hover,
body.woocommerce-page .site-content .woocommerce a:not(.button):not(.wp-element-button):not(.added_to_cart):hover {
    color: var(--pssk-ui-primary-hover);
}
body.woocommerce .site-content .woocommerce a:not(.button):not(.wp-element-button):not(.added_to_cart):focus-visible,
body.woocommerce-page .site-content .woocommerce a:not(.button):not(.wp-element-button):not(.added_to_cart):focus-visible {
    color: var(--pssk-ui-primary-hover);
    outline: 2px solid var(--pssk-ui-primary);
    outline-offset: 2px;
    border-radius: 2px;
}
