/* ATOK v2 on WordPress: page shell fixes and the Donation for WooCommerce widget restyled to match the design. */

body.atok-v2 { margin: 0; }
body.atok-v2.admin-bar .top { top: calc(44px + 32px); }
body.atok-v2.admin-bar .top.is-scrolled { top: calc(14px + 32px); }
@media (max-width: 960px) {
  body.atok-v2.admin-bar .top { top: calc(16px + 32px); }
  body.atok-v2.admin-bar .top.is-scrolled { top: calc(10px + 32px); }
}
@media (max-width: 782px) {
  body.atok-v2.admin-bar .top { top: calc(16px + 46px); }
  body.atok-v2.admin-bar .top.is-scrolled { top: calc(10px + 46px); }
}
/* Below 600px the admin bar scrolls away with the page. */
@media (max-width: 600px) { body.atok-v2.admin-bar .top.is-scrolled { top: 10px; } }

/* Donate-only page: no hero image, so the section clears the floating header itself. */
.atok-donate-page .donate { padding-top: clamp(200px, 22vw, 260px); min-height: 70vh; }

/* ---- Donation widget ---- */
.atok-donate-widget { margin-top: 8px; }
.atok-donate-widget .widget_wc-donation-widget,
.atok-donate-widget .wc-donation-in-action { background: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; }
.atok-donate-widget label[for="donation-price"] { display: none !important; }
.atok-donate-widget .in-action-elements > .row1 { display: block; }
.atok-donate-widget .atok-amounts,
.atok-donate-widget .row1:has(> .wc-label-radio) {
  display: flex !important; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 !important; padding: 0 !important;
}

.atok-donate-widget .wc-label-radio {
  position: relative !important; display: inline-flex !important; align-items: center; justify-content: center;
  min-width: 110px; margin: 0 !important; padding: 16px 22px !important; box-sizing: border-box;
  border: 2px solid rgba(255,255,255,.45) !important; border-radius: 999px !important; background: none !important;
  color: var(--white) !important; font-family: var(--serif) !important; font-size: 1.35rem !important; font-weight: 400 !important; line-height: 1 !important;
  cursor: pointer; user-select: none; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.atok-donate-widget .wc-label-radio:hover { border-color: var(--white) !important; }
.atok-donate-widget .wc-label-radio input[type="radio"] { position: absolute !important; opacity: 0 !important; width: 1px !important; height: 1px !important; margin: 0 !important; pointer-events: none; }
.atok-donate-widget .wc-label-radio .checkmark { display: none !important; }
.atok-donate-widget .wc-label-radio.is-checked { background: var(--white) !important; border-color: var(--white) !important; color: var(--navy) !important; }
.atok-donate-widget .wc-label-radio:focus-within { outline: 3px solid var(--lamp); outline-offset: 3px; }

.atok-donate-widget .wc-donation-f-donation-other-value {
  margin: 22px auto 0 !important; width: 240px !important; max-width: 100%; box-sizing: border-box;
  padding: 14px 22px !important; border: 0 !important; border-radius: 999px !important; background: var(--white) !important;
  color: var(--navy) !important; font-family: var(--serif) !important; font-size: 1.4rem !important; text-align: center;
}
.atok-donate-widget .wc-donation-f-donation-other-value:focus { outline: 3px solid var(--lamp); outline-offset: 3px; }
.atok-donate-widget .wc-donation-f-donation-other-value::placeholder { color: #8a90a2; }

.atok-donate-widget .row2 { display: flex; justify-content: center; margin: 0 !important; padding: 0 !important; }
.atok-donate-widget .wc-donation-f-submit-donation {
  margin-top: 30px !important; padding: 18px 40px !important; border: 2px solid var(--lamp) !important; border-radius: 999px !important;
  background: var(--lamp) !important; color: var(--night) !important; font-family: var(--sans) !important; font-size: 1.15rem !important; font-weight: 600 !important;
  line-height: 1.2 !important; cursor: pointer; width: auto !important; height: auto !important; text-transform: none !important; letter-spacing: 0 !important;
}
.atok-donate-widget .wc-donation-f-submit-donation:hover { background: #f3c565 !important; border-color: #f3c565 !important; }
.atok-donate-widget .wc-donation-f-submit-donation.loading { opacity: .7; cursor: progress; }
.atok-donate-note { margin: 18px auto 0; color: rgba(255,255,255,.75); font-size: .95rem; }

@media (max-width: 640px) {
  .atok-donate-widget .wc-label-radio { min-width: 0; padding: 14px 18px !important; font-size: 1.15rem !important; }
}

/* ---- Cart, checkout and thank-you pages (WooCommerce markup, theme CSS removed) ---- */
.atok-checkout-page { background: var(--paper); }
.checkout-hero {
  background: var(--navy); color: var(--white); text-align: center;
  padding: clamp(190px, 20vw, 240px) var(--gutter) clamp(120px, 12vw, 150px);
}
.checkout-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); letter-spacing: -0.01em; }
.checkout-body { padding: 0 var(--gutter) clamp(72px, 9vw, 120px); margin-top: clamp(-90px, -7vw, -60px); }
.checkout-inner { max-width: 1120px; margin: 0 auto; }

.atok-checkout-page .woocommerce { color: var(--ink); }
.atok-checkout-page .woocommerce a { color: var(--navy); }
.atok-checkout-page .woocommerce h3,
.atok-checkout-page .woocommerce h2 { color: var(--navy); font-size: 1.6rem; margin: 0 0 22px; }
.atok-checkout-page .woocommerce p { max-width: none; }

/* Two columns: details on the left, donation summary and card payment on the right. */
.atok-checkout-page form.checkout {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto 1fr;
  column-gap: 28px; align-items: start;
}
.atok-checkout-page form.checkout > * { grid-column: 1 / -1; }
.atok-checkout-page form.checkout > #customer_details { grid-column: 1; grid-row: 1 / span 3; }
.atok-checkout-page form.checkout > #order_review_heading { grid-column: 2; grid-row: 1; }
.atok-checkout-page form.checkout > #order_review { grid-column: 2; grid-row: 2; }
.atok-checkout-page form.checkout > .woocommerce-NoticeGroup { grid-row: auto; margin-bottom: 20px; }

.atok-checkout-page #customer_details,
.atok-checkout-page #order_review,
.atok-checkout-page #order_review_heading,
.atok-checkout-page .woocommerce-order,
.atok-checkout-page .woocommerce-cart-form,
.atok-checkout-page .cart-collaterals,
.atok-checkout-page .cart-empty,
.atok-checkout-page .return-to-shop {
  background: var(--white); box-shadow: 0 18px 50px rgba(14,20,36,.10);
}
.atok-checkout-page #customer_details { border-radius: 20px; padding: clamp(24px, 4vw, 40px); }
.atok-checkout-page #order_review_heading { margin: 0; border-radius: 20px 20px 0 0; padding: clamp(24px, 4vw, 36px) clamp(24px, 3vw, 32px) 6px; }
.atok-checkout-page #order_review { border-radius: 0 0 20px 20px; padding: 0 clamp(24px, 3vw, 32px) clamp(24px, 3vw, 32px); }

.atok-checkout-page .col2-set .col-1,
.atok-checkout-page .col2-set .col-2 { width: auto; float: none; }
.atok-checkout-page .woocommerce-shipping-fields:empty,
.atok-checkout-page .woocommerce-additional-fields,
.atok-checkout-page .woocommerce-form-coupon-toggle,
.atok-checkout-page .checkout_coupon { display: none !important; }

/* Fields */
.atok-checkout-page .woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.atok-checkout-page .form-row { grid-column: 1 / -1; margin: 0 0 18px; padding: 0; }
.atok-checkout-page .form-row-first { grid-column: 1; }
.atok-checkout-page .form-row-last { grid-column: 2; }
.atok-checkout-page .form-row label { display: block; margin: 0 0 6px; color: var(--navy); font-weight: 600; font-size: .95rem; line-height: 1.3; }
.atok-checkout-page .form-row label .required { color: var(--lamp-deep); text-decoration: none; border: 0; }
.atok-checkout-page .form-row label .optional { color: var(--muted); font-weight: 400; }
.atok-checkout-page .woocommerce-input-wrapper { display: block; }
.atok-checkout-page .form-row .input-text,
.atok-checkout-page .form-row select {
  display: block; width: 100%; min-height: 52px; margin: 0; padding: 13px 16px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--white);
  color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.atok-checkout-page .form-row textarea.input-text { min-height: 110px; }
.atok-checkout-page .form-row .input-text:focus,
.atok-checkout-page .form-row select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(233,178,74,.45); }
.atok-checkout-page .form-row .input-text::placeholder { color: #9aa0ae; }
.atok-checkout-page .woocommerce-invalid .input-text,
.atok-checkout-page .woocommerce-invalid .select2-selection { border-color: #c2412d !important; }

/* Country and state pickers (select2) */
.atok-checkout-page .select2-container { width: 100% !important; }
.atok-checkout-page .select2-container .select2-selection--single {
  height: 52px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white);
}
.atok-checkout-page .select2-container .select2-selection--single .select2-selection__rendered { line-height: 49px; padding: 0 40px 0 16px; color: var(--ink); }
.atok-checkout-page .select2-container .select2-selection--single .select2-selection__arrow { height: 49px; right: 10px; }
.atok-checkout-page .select2-container--focus .select2-selection--single,
.atok-checkout-page .select2-container--open .select2-selection--single { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(233,178,74,.45); }
.select2-dropdown { border-color: var(--line) !important; border-radius: 12px !important; overflow: hidden; font-family: var(--sans); }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--navy) !important; }
.select2-search--dropdown .select2-search__field { border: 1.5px solid var(--line) !important; border-radius: 8px; padding: 8px 10px !important; }

/* Donation summary */
.atok-checkout-page table.shop_table { width: 100%; margin: 0 0 24px; border: 0; border-collapse: collapse; font-size: 1rem; }
.atok-checkout-page table.shop_table th,
.atok-checkout-page table.shop_table td { padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; background: none; }
.atok-checkout-page table.shop_table td:last-child,
.atok-checkout-page table.shop_table th:last-child { text-align: right; }
.atok-checkout-page table.shop_table thead th { padding-top: 0; color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.atok-checkout-page table.shop_table .order-total th,
.atok-checkout-page table.shop_table .order-total td { border-bottom: 0; padding-top: 18px; color: var(--navy); }
.atok-checkout-page table.shop_table .order-total .amount { font-family: var(--serif); font-size: 1.7rem; font-weight: 400; }
.atok-checkout-page .product-quantity { font-weight: 400; color: var(--muted); }
/* The donation plugin's inline CSS boxes the currency symbol for its amount field; keep prices plain here. */
.atok-checkout-page .woocommerce-Price-currencySymbol { display: inline !important; width: auto !important; min-width: 0 !important; height: auto !important; padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; color: inherit !important; font: inherit !important; }

/* Card payment (Westpac PayWay frame) */
.atok-checkout-page #payment { background: none; border-radius: 0; }
.atok-checkout-page #payment ul.payment_methods { margin: 0 0 20px; padding: 16px; border: 1.5px solid var(--line); border-radius: 16px; list-style: none; }
.atok-checkout-page #payment ul.payment_methods li { margin: 0; padding: 0; line-height: 1.5; }
.atok-checkout-page #payment ul.payment_methods li > input[type="radio"]:only-of-type { position: absolute; opacity: 0; pointer-events: none; }
.atok-checkout-page #payment ul.payment_methods li > label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--navy); font-weight: 600; }
.atok-checkout-page #payment ul.payment_methods li > label img { display: inline-block; max-height: 22px; width: auto; margin: 0; }
.atok-checkout-page #payment .payment_box { margin: 14px 0 0; padding: 14px; border-radius: 12px; background: var(--paper); color: var(--muted); font-size: .95rem; }
.atok-checkout-page #payment .payment_box::before { display: none; }
.atok-checkout-page #payment .payment_box p:last-child { margin-bottom: 0; }
/* PayWay's card frame is a fixed 278px wide; scroll rather than clip if a very small screen can't fit it. */
.atok-checkout-page #payment .payment_box { overflow-x: auto; }
.atok-checkout-page #payment .place-order { margin: 0; padding: 0; text-align: center; }
.atok-checkout-page #place_order {
  display: block; width: 100%; margin: 0; padding: 18px 28px; border: 0; border-radius: 999px;
  background: var(--lamp); color: var(--night); font-family: var(--sans); font-size: 1.15rem; font-weight: 600; line-height: 1.2;
  cursor: pointer; transition: background-color .15s ease;
}
.atok-checkout-page #place_order:hover { background: #f3c565; }
.atok-checkout-page #place_order:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.atok-checkout-page .extra-data { margin-top: 10px !important; color: var(--muted); font-size: .95rem; }
.atok-checkout-page .woocommerce-privacy-policy-text,
.atok-checkout-page .woocommerce-terms-and-conditions-wrapper { color: var(--muted); font-size: .85rem; text-align: left; }

/* Notices */
.atok-checkout-page .woocommerce-error,
.atok-checkout-page .woocommerce-message,
.atok-checkout-page .woocommerce-info {
  margin: 0 0 20px; padding: 16px 20px; border-radius: 14px; border-left: 4px solid var(--navy);
  background: var(--white); color: var(--ink); list-style: none; box-shadow: 0 10px 30px rgba(14,20,36,.08);
}
.atok-checkout-page .woocommerce-error { border-left-color: #c2412d; }
.atok-checkout-page .woocommerce-error li { margin: 0 0 4px; }
.atok-checkout-page .woocommerce-error li:last-child { margin-bottom: 0; }
.atok-checkout-page .woocommerce-error::before,
.atok-checkout-page .woocommerce-message::before,
.atok-checkout-page .woocommerce-info::before { display: none; }

/* Buttons on the cart and thank-you pages */
.atok-checkout-page .woocommerce .button {
  display: inline-block; padding: 14px 26px; border: 0; border-radius: 999px; background: var(--navy);
  color: var(--white); font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.atok-checkout-page .woocommerce .button:hover { background: var(--navy-soft); }
.atok-checkout-page .woocommerce .checkout-button { background: var(--lamp); color: var(--night); }
.atok-checkout-page .woocommerce .checkout-button:hover { background: #f3c565; }
.atok-checkout-page .cart-empty,
.atok-checkout-page .return-to-shop { margin: 0; padding: 32px clamp(24px, 4vw, 40px); text-align: center; }
.atok-checkout-page .cart-empty { border-radius: 20px 20px 0 0; padding-bottom: 8px; border-left: 0; box-shadow: 0 18px 50px rgba(14,20,36,.10); }
.atok-checkout-page .return-to-shop { border-radius: 0 0 20px 20px; padding-top: 8px; }
.atok-checkout-page .woocommerce-cart-form,
.atok-checkout-page .cart-collaterals { border-radius: 20px; padding: clamp(24px, 4vw, 40px); margin-bottom: 24px; }
.atok-checkout-page .cart-collaterals .cart_totals { float: none; width: auto; }
.atok-checkout-page .wc-proceed-to-checkout .checkout-button { display: block; text-align: center; }

/* Thank-you page */
.atok-checkout-page .woocommerce-order { max-width: 820px; margin: 0 auto; border-radius: 20px; padding: clamp(28px, 5vw, 48px); }
.atok-checkout-page .woocommerce-thankyou-order-received { font-family: var(--serif); color: var(--navy); font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.35; text-align: center; margin: 0 0 28px; }
.atok-checkout-page ul.woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 36px; padding: 0; list-style: none; }
.atok-checkout-page ul.woocommerce-order-overview li { margin: 0; padding: 14px 16px; border: 0; border-radius: 12px; background: var(--paper); color: var(--muted); font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; }
.atok-checkout-page ul.woocommerce-order-overview li strong { display: block; margin-top: 4px; color: var(--navy); font-size: 1.05rem; letter-spacing: 0; text-transform: none; word-break: break-word; }
.atok-checkout-page .woocommerce-customer-details address { padding: 18px 20px; border: 1.5px solid var(--line); border-radius: 14px; font-style: normal; line-height: 1.6; }
.atok-checkout-page .woocommerce-customer-details .woocommerce-column__title { font-size: 1.3rem; }

@media (max-width: 900px) {
  .atok-checkout-page form.checkout { display: block; }
  .atok-checkout-page #customer_details { margin-bottom: 24px; }
}
@media (max-width: 520px) {
  .atok-checkout-page .woocommerce-billing-fields__field-wrapper { display: block; }
  .checkout-body { padding-left: 14px; padding-right: 14px; }
  .atok-checkout-page #order_review_heading { padding-left: 18px; padding-right: 18px; }
  .atok-checkout-page #order_review { padding: 0 18px 24px; }
  .atok-checkout-page #payment ul.payment_methods { padding: 0; border: 0; }
  .atok-checkout-page #payment .payment_box { padding: 12px 0 0; background: none; }
}
