/* ==========================================================================
   Store pages — Cart, Checkout, My Account — dressed in the design system.
   Loaded only while WooCommerce is active, after its own styles. The
   designed Shop and product pages do not use any of this.
   ========================================================================== */

.ny-store__page { padding-block: clamp(56px, 6vw, 96px) clamp(80px, 8vw, 130px); }
.ny-store__body > .woocommerce,
.ny-store__body > .wp-block-woocommerce-cart,
.ny-store__body > .wp-block-woocommerce-checkout { max-width: none; margin: 0; }

.ny-store .ny-store__body h2,
.ny-store .ny-store__body h3 { font-family: var(--ny-serif); font-weight: 400; color: var(--ny-head); letter-spacing: -0.01em; }
.ny-store .ny-store__body h2 { font-size: clamp(1.7rem, 2.2vw, 2.1rem); margin-bottom: .7em; }
.ny-store .ny-store__body a { color: var(--ny-forest); }

/* --------------------------------------------------------------- buttons -- */

.ny-store .woocommerce a.button,
.ny-store .woocommerce button.button,
.ny-store .woocommerce input.button,
.ny-store .woocommerce .button.alt,
.ny-store .wc-block-components-button:not(.is-link),
.ny-store .wc-block-cart__submit-button,
.ny-store .wc-block-components-checkout-place-order-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 14px 28px;
	border: 1px solid var(--ny-forest);
	border-radius: var(--ny-radius-btn);
	background: var(--ny-forest);
	color: var(--ny-ivory);
	font-family: var(--ny-sans);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .02em;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: none;
	transition: background-color .35s var(--ny-ease), border-color .35s var(--ny-ease);
}
.ny-store .woocommerce a.button:hover,
.ny-store .woocommerce button.button:hover,
.ny-store .woocommerce input.button:hover,
.ny-store .wc-block-components-button:not(.is-link):hover,
.ny-store .wc-block-components-checkout-place-order-button:hover {
	background: var(--ny-forest-deep);
	border-color: var(--ny-forest-deep);
	color: var(--ny-ivory);
}
.ny-store .wc-block-components-checkout-place-order-button,
.ny-store .wc-block-cart__submit-button { min-height: 60px; font-size: 15px; }
.ny-store .wc-block-components-button__text { font-weight: 500; }

/* ---------------------------------------------------------------- fields -- */

.ny-store .woocommerce form .form-row label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ny-head); margin-bottom: 8px; line-height: 1.4; }
.ny-store .woocommerce form .form-row .required { color: var(--ny-clay); text-decoration: none; }
.ny-store .woocommerce form .form-row .input-text,
.ny-store .woocommerce form .form-row select,
.ny-store .woocommerce form .form-row textarea,
.ny-store .woocommerce-input-wrapper .input-text {
	min-height: 52px;
	padding: 13px 18px;
	border: 1px solid rgba(41, 42, 40, .22);
	border-radius: var(--ny-radius);
	background: var(--ny-white);
	color: var(--ny-charcoal);
	font-size: 16px;
	line-height: 1.4;
}
.ny-store .woocommerce form .form-row .input-text:focus,
.ny-store .woocommerce form .form-row select:focus { outline: none; border-color: var(--ny-forest); box-shadow: 0 0 0 3px rgba(23, 61, 50, .14); }
.ny-store .woocommerce form .show-password-input { top: 50%; transform: translateY(-50%); right: 14px; }

.ny-store .wc-block-components-text-input input,
.ny-store .wc-block-components-combobox .wc-block-components-combobox-control input,
.ny-store .wc-blocks-components-select .wc-blocks-components-select__select,
.ny-store .wc-block-components-textarea {
	border-radius: var(--ny-radius) !important;
	border-color: rgba(41, 42, 40, .22) !important;
	background: var(--ny-white) !important;
	font-family: var(--ny-sans);
}
.ny-store .wc-block-components-text-input.is-active input:focus,
.ny-store .wc-block-components-text-input input:focus { border-color: var(--ny-forest) !important; box-shadow: 0 0 0 3px rgba(23, 61, 50, .14) !important; outline: none; }
.ny-store .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox] { border-radius: 2px; }
.ny-store .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked { background: var(--ny-forest); border-color: var(--ny-forest); }
.ny-store .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: var(--ny-ivory); }

/* ------------------------------------------------- checkout and cart blocks -- */

.ny-store .wc-block-components-title.wc-block-components-title,
.ny-store .wc-block-components-checkout-step__title,
.ny-store .wc-block-components-checkout-order-summary__title-text,
.ny-store .wc-block-cart__totals-title {
	font-family: var(--ny-serif);
	font-weight: 400;
	font-size: 1.6rem;
	color: var(--ny-head);
	letter-spacing: -0.01em;
}
.ny-store .wc-block-components-checkout-step__description,
.ny-store .wc-block-checkout__terms { color: var(--ny-muted); }

/* The order summary and cart totals as a paper card. */
.ny-store .wp-block-woocommerce-checkout-order-summary-block,
.ny-store .wp-block-woocommerce-cart-order-summary-block {
	border: 1px solid var(--ny-line);
	border-radius: var(--ny-radius);
	background: var(--ny-paper);
	box-shadow: 0 30px 60px -44px rgba(23, 42, 35, .5);
}
.ny-store .wc-block-components-order-summary-item__description .wc-block-components-product-name,
.ny-store .wc-block-cart-item__product .wc-block-components-product-name {
	font-family: var(--ny-serif);
	font-size: 1.15rem;
	color: var(--ny-head);
	text-decoration: none;
}
.ny-store .wc-block-components-order-summary-item__image img,
.ny-store .wc-block-cart-item__image img { border-radius: 2px; box-shadow: 0 10px 20px -12px rgba(23, 42, 35, .5); }
.ny-store .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.ny-store .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-family: var(--ny-serif);
	font-weight: 400;
	font-size: 1.5rem;
	color: var(--ny-head);
}
.ny-store .wc-block-components-product-badge { border-radius: 999px; }
.ny-store .wc-block-cart__empty-cart__title { font-family: var(--ny-serif); color: var(--ny-head); }

/* ---------------------------------------------------------------- notices -- */

.ny-store .woocommerce-message,
.ny-store .woocommerce-info,
.ny-store .woocommerce-error,
.ny-store .woocommerce-notices-wrapper > * {
	border-top: 0;
	border-left: 3px solid var(--ny-forest);
	border-radius: 0;
	background: var(--ny-paper);
	color: var(--ny-charcoal);
	font-size: 15px;
}
.ny-store .woocommerce-error { border-left-color: #A4452B; }
.ny-store .woocommerce-message::before,
.ny-store .woocommerce-info::before { color: var(--ny-forest); }
.ny-store .woocommerce-message .button,
.ny-store .woocommerce-info .button { min-height: 40px; padding: 10px 18px; }
.ny-store .wc-block-components-notice-banner { border-radius: var(--ny-radius); font-size: 15px; }

/* ---------------------------------------------------- login and register -- */

.ny-store .woocommerce form.login,
.ny-store .woocommerce form.register,
.ny-store .woocommerce form.lost_reset_password {
	margin: 0;
	padding: clamp(28px, 3.4vw, 46px);
	border: 1px solid var(--ny-line);
	border-radius: var(--ny-radius);
	background: var(--ny-paper);
	box-shadow: 0 30px 60px -44px rgba(23, 42, 35, .5);
}
.ny-store .woocommerce .u-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.ny-store .woocommerce .u-columns::before,
.ny-store .woocommerce .u-columns::after { content: none; }
.ny-store .woocommerce .u-columns .col-1,
.ny-store .woocommerce .u-columns .col-2 { width: auto; float: none; }
.ny-store .woocommerce form .form-row .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 0 16px; font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ny-charcoal); }
.ny-store .woocommerce-privacy-policy-text { font-size: 14px; color: var(--ny-muted); }
.ny-store .woocommerce-LostPassword { margin-top: 16px; font-size: 14px; }

/* ------------------------------------------------------------ my account -- */

.ny-store .woocommerce-account .woocommerce,
.ny-store.woocommerce-account .ny-store__body > .woocommerce { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0 clamp(32px, 5vw, 80px); align-items: start; }
.ny-store.woocommerce-account:not(.logged-in) .ny-store__body > .woocommerce { display: block; }
.ny-store.woocommerce-account .ny-store__body > .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.ny-store .woocommerce-MyAccount-navigation,
.ny-store .woocommerce-MyAccount-content { width: auto; float: none; grid-row: 2; }
.ny-store .woocommerce-MyAccount-navigation { grid-column: 1; }
.ny-store .woocommerce-MyAccount-content { grid-column: 2; }
.ny-store .woocommerce-MyAccount-content table.shop_table { width: 100%; }
.ny-store .woocommerce-MyAccount-navigation ul { border-top: 1px solid var(--ny-line); }
.ny-store .woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--ny-line); }
.ny-store .woocommerce-MyAccount-navigation a {
	display: flex;
	justify-content: space-between;
	padding: 16px 4px;
	color: var(--ny-charcoal);
	font-size: 15px;
	text-decoration: none;
	transition: color .3s, padding .35s var(--ny-ease);
}
.ny-store .woocommerce-MyAccount-navigation a:hover { color: var(--ny-forest); padding-left: 10px; }
.ny-store .woocommerce-MyAccount-navigation .is-active a { color: var(--ny-forest); font-weight: 600; }
.ny-store .woocommerce-MyAccount-navigation .is-active a::after { content: ""; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--ny-clay); }
.ny-store .woocommerce-MyAccount-content > p:first-child { font-size: 1.1rem; }

.ny-store .woocommerce table.shop_table {
	border: 1px solid var(--ny-line);
	border-radius: var(--ny-radius);
	border-collapse: separate;
	background: var(--ny-paper);
	font-size: 15px;
}
.ny-store .woocommerce table.shop_table th { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ny-head); }
.ny-store .woocommerce table.shop_table td,
.ny-store .woocommerce table.shop_table th { padding: 16px 18px; border-color: var(--ny-line); }
.ny-store .woocommerce table.shop_table .button { min-height: 40px; padding: 10px 18px; }
.ny-store .woocommerce-order-downloads .download-file a.button::before { content: "↓"; margin-right: 8px; }

/* Order received */
.ny-store .woocommerce-order-overview { padding: 0; }
.ny-store .woocommerce-thankyou-order-received { font-family: var(--ny-serif); font-size: clamp(1.6rem, 2.4vw, 2.2rem); color: var(--ny-head); }

@media (max-width: 860px) {
	.ny-store .woocommerce .u-columns,
	.ny-store.woocommerce-account .ny-store__body > .woocommerce { grid-template-columns: minmax(0, 1fr); }
	.ny-store .woocommerce-MyAccount-navigation,
	.ny-store .woocommerce-MyAccount-content { grid-column: 1; grid-row: auto; }
	.ny-store .woocommerce-MyAccount-navigation { margin-bottom: 36px; }
	.ny-store .woocommerce table.shop_table_responsive tr td { padding: 10px 16px; }
}
