/* Michael__K Sounds: shop-only styles, compatible with the classic product
   template and WooCommerce Cart/Checkout blocks. No form behavior is changed. */
body.mk-shop-style {
  --mk-shop-field: #151a14;
  --mk-shop-border: #4b5544;
  --mk-shop-muted: #bac3b2;
  --mk-shop-error: #ffb0a6;
  color-scheme: dark;
}

/* Product: smaller artwork and a real gutter, with WooCommerce's floats
   retained so sale badges, gallery zoom, tabs and related items still work. */
body.mk-shop-style.single-product main {
  width: calc(100% - 80px);
  max-width: 1200px;
  margin-inline: auto;
}
body.mk-shop-style.single-product .woocommerce-breadcrumb {
  margin: 26px 0 32px;
  color: var(--mk-shop-muted);
  font-size: 12px;
  line-height: 1.6;
}
body.mk-shop-style.single-product div.product div.woocommerce-product-gallery {
  width: 34%;
  max-width: 400px;
  float: left;
  margin: 0 0 48px;
}
body.mk-shop-style.single-product .woocommerce-product-gallery__wrapper {
  margin: 0;
  border: 1px solid var(--mk-line);
  border-radius: 10px;
  overflow: hidden;
}
body.mk-shop-style.single-product div.product div.summary {
  float: right;
  width: 60%;
  min-width: 0;
  padding: 5px 0 0;
  margin: 0 0 48px;
}
body.mk-shop-style.single-product div.product .product_title,
body.mk-shop-style.single-product .wp-block-column > .wp-block-post-title {
  font-size: clamp(27px, 2.9vw, 40px);
  line-height: 1.18;
  letter-spacing: -.035em;
  margin: 0 0 22px;
  text-wrap: balance;
}
body.mk-shop-style.single-product div.product .summary .price,
body.mk-shop-style.single-product .wp-block-woocommerce-product-price {
  color: var(--mk-lime);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 22px;
}
body.mk-shop-style.single-product .woocommerce-product-details__short-description,
body.mk-shop-style.single-product .wp-block-column > .wp-block-post-excerpt {
  color: var(--mk-shop-muted);
  font-size: 16px;
  line-height: 1.8;
  max-width: 62ch;
  margin-bottom: 26px;
}
body.mk-shop-style.single-product div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
}
body.mk-shop-style.single-product div.product form.cart .quantity { margin: 0; }
body.mk-shop-style.single-product .quantity input.qty {
  width: 76px;
  min-height: 52px;
  border: 1px solid var(--mk-shop-border);
  border-radius: 6px;
  background: var(--mk-shop-field);
  color: var(--mk-ink);
  font: inherit;
}
body.mk-shop-style .single_add_to_cart_button.button,
body.mk-shop-style .wc-block-components-checkout-place-order-button,
body.mk-shop-style .wc-block-cart__submit-button,
body.mk-shop-style .woocommerce a.checkout-button,
body.mk-shop-style .woocommerce button#place_order {
  background: var(--mk-lime);
  color: var(--mk-bg);
  border: 1px solid var(--mk-lime);
  border-radius: 6px;
  box-shadow: none;
  min-height: 52px;
  padding: 15px 25px;
  font: 700 15px/1.4 Arial, Helvetica, sans-serif;
  text-decoration: none;
}
body.mk-shop-style .single_add_to_cart_button.button:hover,
body.mk-shop-style .wc-block-components-checkout-place-order-button:hover,
body.mk-shop-style .wc-block-cart__submit-button:hover {
  background: #e3ffac;
  color: var(--mk-bg);
}
body.mk-shop-style button:disabled { opacity: .55; cursor: not-allowed; }
body.mk-shop-style.single-product .product_meta,
body.mk-shop-style.single-product .wp-block-woocommerce-product-meta {
  border-top: 1px solid var(--mk-line);
  padding-top: 22px;
  margin-top: 28px;
  color: var(--mk-shop-muted);
  font-size: 12px;
}
body.mk-shop-style.single-product div.product .woocommerce-tabs {
  clear: both;
  border-top: 1px solid var(--mk-line);
  padding-top: 26px;
}
body.mk-shop-style.single-product div.product .woocommerce-tabs ul.tabs {
  margin: 0 0 28px;
  padding: 0;
}
body.mk-shop-style.single-product div.product .woocommerce-tabs .panel {
  max-width: 900px;
  font-size: 16px;
  line-height: 1.85;
  padding-bottom: 30px;
}
body.mk-shop-style.single-product .woocommerce-tabs h2 {
  font-size: 25px;
  line-height: 1.3;
  margin-bottom: 20px;
}
body.mk-shop-style.single-product .woocommerce-tabs ul { padding-left: 22px; }

/* WooCommerce's block product template has two columns instead of .summary. */
body.mk-shop-style.single-product .wp-block-columns:has(> .wp-block-column > .wp-block-woocommerce-product-image-gallery) {
  gap: clamp(36px, 5vw, 72px);
  margin-bottom: 48px;
}
body.mk-shop-style.single-product .wp-block-column:has(> .wp-block-woocommerce-product-image-gallery) {
  flex-basis: 34% !important;
  flex-grow: 0;
  max-width: 400px;
}
body.mk-shop-style.single-product div.product .wp-block-woocommerce-product-image-gallery div.woocommerce-product-gallery {
  float: none;
  width: 100%;
  margin: 0;
}
body.mk-shop-style.single-product .wp-block-column > .wp-block-woocommerce-product-price .wc-block-components-product-price {
  font-size: inherit;
}
body.mk-shop-style.single-product .woocommerce-tabs .panel p { margin-bottom: 18px; }

/* Checkout and cart: retain native responsive layout and form semantics. */
body.mk-shop-style .wp-block-woocommerce-checkout,
body.mk-shop-style .wp-block-woocommerce-cart {
  width: calc(100% - 36px);
  max-width: 1160px;
  margin: 30px auto 64px;
  font-size: 16px;
  line-height: 1.6;
  --wc-form-color-text: #f1f0e8;
  --wc-form-color-background: #151a14;
  --wc-form-border-color: #4b5544;
  --wc-form-border-radius: 8px;
  --wc-form-color-error: #ffb0a6;
  --wc-form-color-accent: #d6f68b;
}
body.mk-shop-style.woocommerce-checkout header > header > .wp-block-group.alignwide {
  width: calc(100% - 36px);
  max-width: 1160px;
  margin-inline: auto;
}
body.mk-shop-style .wc-block-checkout__main {
  background: var(--mk-surface);
  border: 1px solid var(--mk-line);
  border-radius: 16px;
  padding: 30px;
}
body.mk-shop-style .wc-block-checkout__sidebar,
body.mk-shop-style .wc-block-cart__sidebar { padding-left: 28px; }
body.mk-shop-style .wp-block-woocommerce-checkout-order-summary-block,
body.mk-shop-style .wp-block-woocommerce-cart-order-summary-block {
  --mk-summary-space: 22px;
  background: var(--mk-surface);
  border: 1px solid var(--mk-line);
  border-radius: 16px;
  overflow: hidden;
  padding: var(--mk-summary-space);
}
/* Keep one consistent inset across headings, products, coupons and totals. */
body.mk-shop-style :is(.wp-block-woocommerce-checkout-order-summary-block, .wp-block-woocommerce-cart-order-summary-block) :is(.wc-block-cart__totals-title, .wc-block-components-panel, .wc-block-components-totals-item, .wc-block-components-totals-coupon, .wc-block-components-order-summary) {
  padding-inline: 0;
}
body.mk-shop-style .wc-block-cart__totals-title {
  padding-top: 0;
  padding-bottom: 18px;
}
body.mk-shop-style .wc-block-components-totals-footer-item {
  gap: 16px;
}
body.mk-shop-style .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  flex-shrink: 0;
}
body.mk-shop-style .wc-block-components-checkout-step { margin-bottom: 30px; }
body.mk-shop-style .wc-block-components-checkout-step__title {
  color: var(--mk-ink);
  font-size: 19px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -.02em;
}
body.mk-shop-style .wc-block-components-checkout-step__heading { margin-bottom: 18px; }
body.mk-shop-style .wc-block-components-express-payment {
  border-color: var(--mk-shop-border);
  border-radius: 10px;
  padding: 18px;
}
body.mk-shop-style .wc-block-components-express-payment__title,
body.mk-shop-style .wc-block-components-express-payment-continue-rule { color: var(--mk-shop-muted); }
body.mk-shop-style .wc-block-components-form .wc-block-components-text-input input[type],
body.mk-shop-style .wc-block-components-text-input input[type],
body.mk-shop-style .wc-block-components-combobox .components-combobox-control__input,
body.mk-shop-style .wc-block-components-textarea,
body.mk-shop-style .wc-block-components-combobox-control input,
body.mk-shop-style .wc-blocks-components-select .wc-blocks-components-select__select {
  background: var(--mk-shop-field);
  color: var(--mk-ink);
  border-color: var(--mk-shop-border);
  border-radius: 8px;
  box-shadow: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 56px;
}
body.mk-shop-style .wc-block-components-text-input label,
body.mk-shop-style .wc-block-components-combobox label,
body.mk-shop-style .wc-blocks-components-select .wc-blocks-components-select__label,
body.mk-shop-style .wc-block-components-textarea::placeholder,
body.mk-shop-style .wc-block-components-text-input input::placeholder {
  color: var(--mk-shop-muted);
  opacity: 1;
}
body.mk-shop-style .wc-block-components-combobox .components-form-token-field__suggestions-list {
  color: var(--mk-ink);
  background: var(--mk-surface);
  border-color: var(--mk-shop-border);
}
body.mk-shop-style .components-form-token-field__suggestion.is-selected {
  background: var(--mk-lime);
  color: var(--mk-bg);
}
body.mk-shop-style .wc-blocks-components-select .wc-blocks-components-select__expand { fill: var(--mk-shop-muted); }
body.mk-shop-style .wc-block-components-form .wc-block-components-text-input input[type]:is(:focus, :focus-within),
body.mk-shop-style .wc-block-components-text-input input[type]:is(:focus, :focus-within),
body.mk-shop-style .wc-blocks-components-select .wc-blocks-components-select__select:focus,
body.mk-shop-style .wc-block-components-combobox input:focus,
body.mk-shop-style .wc-block-components-textarea:focus {
  border-color: var(--mk-lime);
  background: var(--mk-shop-field);
  color: var(--mk-ink);
  box-shadow: 0 0 0 1px var(--mk-lime);
  outline: none;
}
body.mk-shop-style .wc-block-components-form .wc-block-components-text-input.has-error input[type] { border-color: var(--mk-shop-error); }
body.mk-shop-style .wc-blocks-components-select__container { background: var(--mk-shop-field); border-radius: 8px; }
body.mk-shop-style .wc-block-components-text-input.has-error label,
body.mk-shop-style .wc-block-components-validation-error { color: var(--mk-shop-error); }
body.mk-shop-style .wc-block-components-checkbox .wc-block-components-checkbox__input {
  background: var(--mk-shop-field);
  border-color: var(--mk-shop-border);
  border-radius: 4px;
}
body.mk-shop-style .wc-block-components-checkbox .wc-block-components-checkbox__input:checked {
  background: var(--mk-lime);
  border-color: var(--mk-lime);
}
body.mk-shop-style .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: var(--mk-bg); }
body.mk-shop-style .wc-block-components-radio-control__input { border-color: var(--mk-shop-muted); }
body.mk-shop-style .wc-block-components-radio-control__input:checked { border-color: var(--mk-lime); }
body.mk-shop-style .wc-block-components-radio-control__input:checked::before { background: var(--mk-lime); }
body.mk-shop-style .wc-block-components-radio-control-accordion-option {
  border: 1px solid var(--mk-shop-border);
  border-radius: 10px;
  background: var(--mk-shop-field);
}
body.mk-shop-style .wc-block-components-radio-control-accordion-option--checked-option-highlighted { outline-color: var(--mk-lime); }
body.mk-shop-style .wc-block-components-radio-control__option { color: var(--mk-ink); }
body.mk-shop-style .wc-block-components-order-summary-item__description {
  min-width: 0;
  padding-left: 14px;
  overflow-wrap: anywhere;
}
body.mk-shop-style .wc-block-components-order-summary-item__individual-prices { color: var(--mk-shop-muted); }
body.mk-shop-style .wc-block-components-order-summary .wc-block-components-product-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}
body.mk-shop-style .wc-block-components-product-metadata { color: var(--mk-shop-muted); }
body.mk-shop-style .wc-block-components-totals-footer-item { font-weight: 700; }
body.mk-shop-style .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { color: var(--mk-lime); }
body.mk-shop-style .wc-block-components-checkout-place-order-button { width: 100%; }
body.mk-shop-style .wc-block-checkout__terms { font-size: 13px; color: var(--mk-shop-muted); line-height: 1.7; }
body.mk-shop-style .wc-block-checkout__terms a { color: var(--mk-lime); text-decoration: underline; }
body.mk-shop-style .wc-block-components-notice-banner { border-radius: 8px; }
body.mk-shop-style .wc-block-components-notice-banner a { text-decoration: underline; }
body.mk-shop-style .woocommerce-order { padding-bottom: 30px; }
body.mk-shop-style .woocommerce-order h2 { font-size: 24px; margin: 30px 0 20px; }
body.mk-shop-style .woocommerce-order table.shop_table { background: var(--mk-surface); border-radius: 10px; }
body.mk-shop-style .woocommerce-order table.shop_table td,
body.mk-shop-style .woocommerce-order table.shop_table th { padding: 17px; overflow-wrap: anywhere; }
body.mk-shop-style .woocommerce-order table.shop_table a { color: var(--mk-lime); }
body.mk-shop-style .woocommerce-order .woocommerce-thankyou-order-received { font-size: 22px; margin-bottom: 24px; }
/* The block-based confirmation uses its own table and address wrappers. */
body.mk-shop-style.woocommerce-order-received main {
  width: calc(100% - 36px);
  max-width: 1200px;
  margin-inline: auto;
}
body.mk-shop-style.woocommerce-order-received main > h1,
body.mk-shop-style .wc-block-order-confirmation-status-description h1,
body.mk-shop-style.woocommerce-order-received main .wp-block-post-title {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.15;
  margin-block: 28px 24px;
}
body.mk-shop-style .wc-block-order-confirmation-status-description > p {
  font-size: clamp(20px, 2.5vw, 30px);
  line-height: 1.5;
  margin-bottom: 24px;
}
body.mk-shop-style .wc-block-order-confirmation-totals table {
  background: var(--mk-surface);
  border-radius: 12px;
  overflow: hidden;
}
body.mk-shop-style .wc-block-order-confirmation-totals table :is(td, th) {
  padding: 22px 24px;
  overflow-wrap: anywhere;
  line-height: 1.65;
}
body.mk-shop-style .wc-block-order-confirmation-totals__total { white-space: nowrap; }
body.mk-shop-style .wc-block-order-confirmation-billing-address,
body.mk-shop-style .wc-block-order-confirmation-shipping-address {
  padding: 24px;
  border-radius: 12px;
  background: var(--mk-surface);
  line-height: 1.75;
}
body.mk-shop-style .wc-block-order-confirmation-downloads .woocommerce-MyAccount-downloads-file {
  color: var(--mk-lime);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  body.mk-shop-style .wc-block-checkout__main { padding: 22px; }
  body.mk-shop-style .wc-block-checkout__sidebar,
  body.mk-shop-style .wc-block-cart__sidebar { padding-left: 18px; }
}
@media (max-width: 767px) {
  body.mk-shop-style .wc-block-order-confirmation-totals table :is(td, th) { padding: 18px 16px; }
  body.mk-shop-style .wc-block-order-confirmation-billing-address,
  body.mk-shop-style .wc-block-order-confirmation-shipping-address { padding: 18px; }
  body.mk-shop-style.single-product div.product div.woocommerce-product-gallery {
    float: none;
    width: min(100%, 340px);
    max-width: 100%;
    margin: 0 auto 30px;
  }
  body.mk-shop-style.single-product div.product div.summary { float: none; width: 100%; margin-bottom: 35px; }
  body.mk-shop-style.single-product div.product .product_title { font-size: clamp(27px, 6.5vw, 36px); }
  body.mk-shop-style.single-product .woocommerce-breadcrumb { margin-block: 20px 26px; }
  body.mk-shop-style .woocommerce-order table.shop_table td,
  body.mk-shop-style .woocommerce-order table.shop_table th { padding: 12px; }
}
@media (max-width: 781px) {
  body.mk-shop-style.single-product .wp-block-columns:has(> .wp-block-column > .wp-block-woocommerce-product-image-gallery) { gap: 30px; }
  body.mk-shop-style.single-product .wp-block-column:has(> .wp-block-woocommerce-product-image-gallery) { flex-basis: 100% !important; width: 100%; max-width: 340px; margin-inline: auto; }
  body.mk-shop-style.single-product .wp-block-column > .wp-block-post-title { font-size: clamp(27px, 6.5vw, 36px); }
  body.mk-shop-style.single-product main { width: calc(100% - 36px); }
}
@media (max-width: 600px) {
  body.mk-shop-style .wc-block-order-confirmation-downloads table,
  body.mk-shop-style .wc-block-order-confirmation-downloads tbody,
  body.mk-shop-style .wc-block-order-confirmation-downloads tr { display: block; width: 100%; }
  body.mk-shop-style .wc-block-order-confirmation-downloads thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  body.mk-shop-style .wc-block-order-confirmation-downloads table tr > td {
    display: block;
    padding: 16px 18px;
    text-align: left;
    overflow-wrap: anywhere;
  }
  body.mk-shop-style .wc-block-order-confirmation-downloads td::before {
    content: attr(data-title);
    display: block;
    margin-bottom: 6px;
    color: var(--mk-shop-muted);
    font-size: 12px;
    font-weight: 600;
  }
  body.mk-shop-style .wc-block-order-confirmation-downloads tbody tr + tr { border-top: 1px solid var(--mk-line); }
}
@container (max-width: 700px) {
  body.mk-shop-style :is(.wp-block-woocommerce-checkout-order-summary-block, .wp-block-woocommerce-cart-order-summary-block) { --mk-summary-space: 18px; }
  body.mk-shop-style .wc-block-checkout__main { padding: 20px 16px; border-radius: 12px; }
  body.mk-shop-style .wc-block-checkout__sidebar,
  body.mk-shop-style .wc-block-cart__sidebar { padding-left: 0; margin-bottom: 24px; }
  body.mk-shop-style .wc-block-components-checkout-step__title { font-size: 18px; }
  body.mk-shop-style .wc-block-components-express-payment { padding: 12px; }
}
