/* Forever Keepsakes: the shop's own pages (checkout, order received, account) dressed in the site's system.
   Loaded only on those pages, after site.css, so every colour, face and size comes from site.css's tokens.
   Scope: body.fk-skin. The theme's header and footer give way to the site's own (printed by the skin plugin). */

body.fk-skin { background: var(--white); color: var(--ink); font: 400 17px/1.6 var(--sans); }
body.fk-skin > .wp-site-blocks > header.wp-block-template-part,
body.fk-skin > .wp-site-blocks > footer.wp-block-template-part { display: none; }
body.fk-skin .wp-site-blocks { padding: 0; }
body.fk-skin main { margin-top: 0 !important; }

/* page frame and title */
body.fk-skin main > .wp-block-group,
body.fk-skin .wp-block-post-content { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
body.fk-skin .wp-block-post-title,
body.fk-skin .entry-title {
  font-family: var(--serif); font-weight: 400; color: var(--evergreen); text-align: center;
  font-size: clamp(36px, 4.4vw, 56px); line-height: 1.1; letter-spacing: -0.01em;
  margin: clamp(40px, 5vw, 64px) auto clamp(28px, 4vw, 44px);
}
body.fk-skin h1, body.fk-skin h2, body.fk-skin h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
body.fk-skin main a { color: var(--evergreen); text-underline-offset: 3px; }
body.fk-skin :focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* checkout layout: the form on white, the order on the frost panel the cart page uses */
body.fk-skin .wp-block-woocommerce-checkout { padding-bottom: var(--section); font-family: var(--sans); color: var(--ink); }
body.fk-skin .wc-block-components-sidebar-layout { gap: clamp(28px, 4vw, 56px); }
body.fk-skin .wc-block-components-sidebar {
  background: var(--frost); border-radius: 24px; padding: 30px !important; align-self: start;
}
body.fk-skin .wc-block-components-sidebar .wc-block-components-panel,
body.fk-skin .wc-block-components-sidebar .wc-block-components-totals-wrapper,
body.fk-skin .wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-block { border-color: #cfdad4; background: transparent; }

/* step titles */
body.fk-skin .wc-block-components-checkout-step__title,
body.fk-skin .wc-block-components-title,
body.fk-skin .wc-block-components-checkout-order-summary__title-text {
  font-family: var(--serif); font-weight: 400; color: var(--evergreen); font-size: 24px; line-height: 1.25;
}
body.fk-skin .wc-block-components-checkout-step__description,
body.fk-skin .wc-block-components-checkout-step__heading-content { color: var(--muted); font-size: 15px; }
body.fk-skin .wc-block-components-checkout-step__container::after { border-color: var(--line); }

/* fields */
body.fk-skin .wc-block-components-text-input input,
body.fk-skin .wc-block-components-text-input textarea,
body.fk-skin .wc-blocks-components-select .wc-blocks-components-select__select,
body.fk-skin .wc-block-components-combobox .components-combobox-control__input,
body.fk-skin .wc-block-components-textarea {
  font-family: var(--sans); color: var(--ink); background: var(--white);
  border: 1.5px solid var(--line) !important; border-radius: 12px !important; box-shadow: none !important;
}
body.fk-skin .wc-block-components-text-input input:focus,
body.fk-skin .wc-blocks-components-select .wc-blocks-components-select__select:focus,
body.fk-skin .wc-block-components-textarea:focus { border-color: var(--evergreen) !important; outline: 3px solid var(--gold); outline-offset: 1px; }
body.fk-skin .wc-block-components-text-input label,
body.fk-skin .wc-blocks-components-select__label { color: var(--muted); font-family: var(--sans); }
body.fk-skin .wc-block-components-validation-error p,
body.fk-skin .wc-block-components-text-input.has-error label { color: var(--red-dark); }
body.fk-skin .wc-block-components-text-input.has-error input { border-color: var(--red-dark) !important; }

/* choices (shipping method, payment method) */
body.fk-skin .wc-block-components-radio-control__option,
body.fk-skin .wc-block-components-radio-control-accordion-option { border-color: var(--line) !important; border-radius: 14px; }
body.fk-skin .wc-block-components-radio-control__input:checked { border-color: var(--evergreen); }
body.fk-skin .wc-block-components-radio-control__input:checked::before { background: var(--evergreen); }
body.fk-skin .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked { background: var(--evergreen); border-color: var(--evergreen); }
body.fk-skin .wc-block-components-checkbox__mark { fill: var(--white); }

/* order summary: one frame only (the frost panel), prices in ink: red is only ever "buy" */
body.fk-skin .wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-block,
body.fk-skin .wc-block-components-sidebar .wc-block-components-checkout-order-summary__title { border: 0 !important; }
body.fk-skin .wc-block-components-order-summary-item .wc-block-components-product-price,
body.fk-skin .wc-block-components-order-summary-item .wc-block-components-formatted-money-amount,
body.fk-skin .wc-block-components-order-summary-item__total-price { color: var(--ink) !important; }
body.fk-skin .wc-block-components-sidebar input[type="text"] {
  width: 100%; min-height: 48px; padding: 0 14px; font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 12px;
}
body.fk-skin .wc-block-components-sidebar button:not(.wc-block-components-panel__button):not(.wc-block-components-checkout-place-order-button) {
  background: transparent !important; color: var(--evergreen) !important; border: 1.5px solid var(--evergreen) !important; margin-top: 10px;
}
body.fk-skin .wc-block-components-sidebar button:not(.wc-block-components-panel__button):not(.wc-block-components-checkout-place-order-button):hover {
  background: var(--evergreen) !important; color: var(--white) !important;
}
body.fk-skin .wc-block-components-order-summary-item__image img { border-radius: 12px; }
body.fk-skin .wc-block-components-order-summary-item__quantity { background: var(--evergreen); color: var(--white); border-color: var(--frost); }
body.fk-skin .wc-block-components-product-name { font-weight: 600; color: var(--ink); }
body.fk-skin .wc-block-components-product-metadata { color: var(--muted); }
body.fk-skin .wc-block-components-totals-item__label { color: var(--ink); }
body.fk-skin .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.fk-skin .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-weight: 700; font-size: 20px; }

/* buttons: red is only ever "buy"; everything else is the green outline */
body.fk-skin .wc-block-components-button:not(.is-link),
body.fk-skin .woocommerce-button, body.fk-skin .woocommerce .button, body.fk-skin .wp-element-button {
  min-height: 52px; padding: 0 30px; border-radius: 999px; font: 600 16px/1 var(--sans);
  background: var(--evergreen); color: var(--white); border: 1.5px solid var(--evergreen);
}
body.fk-skin .wc-block-components-button:not(.is-link):hover,
body.fk-skin .woocommerce-button:hover, body.fk-skin .woocommerce .button:hover { background: var(--evergreen-deep); }
body.fk-skin .wc-block-components-checkout-place-order-button {
  min-height: 58px !important; font-size: 17px !important; background: var(--red) !important; border-color: var(--red) !important; color: var(--white) !important;
}
body.fk-skin .wc-block-components-checkout-place-order-button:hover { background: var(--red-dark) !important; border-color: var(--red-dark) !important; }
body.fk-skin .wc-block-components-checkout-return-to-cart-button { color: var(--evergreen); font-weight: 600; }

/* notices */
body.fk-skin .wc-block-components-notice-banner { border-radius: 14px; font-family: var(--sans); }

/* order received and account */
body.fk-skin .woocommerce form .input-text, body.fk-skin .woocommerce form select {
  min-height: 52px; padding: 0 14px; font: 400 17px/1.4 var(--sans); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--white);
}
body.fk-skin .woocommerce form .input-text:focus { border-color: var(--evergreen); outline: 3px solid var(--gold); outline-offset: 1px; }
body.fk-skin .woocommerce-form-login, body.fk-skin .woocommerce-form-register, body.fk-skin .woocommerce-ResetPassword {
  border: 0 !important; border-radius: 24px !important; background: var(--frost); padding: clamp(22px, 3vw, 34px) !important;
}
body.fk-skin .woocommerce .required { color: var(--red-dark); }
body.fk-skin .woocommerce-order, body.fk-skin .woocommerce-MyAccount-content, body.fk-skin .woocommerce-MyAccount-navigation { font-family: var(--sans); }
body.fk-skin .woocommerce-order-overview,
body.fk-skin .wc-block-order-confirmation-summary { background: var(--frost); border-radius: 24px; padding: 24px 30px; }
body.fk-skin .woocommerce-thankyou-order-received,
body.fk-skin .wc-block-order-confirmation-status { font-family: var(--serif); color: var(--evergreen); font-size: 24px; text-align: center; }

@media (max-width: 781px) {
  body.fk-skin .wc-block-components-sidebar { padding: 22px !important; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  body.fk-skin * { transition: none !important; }
}
