/* Zyplan – Shopify-style checkout */
html:has(body.zy-checkout), body.zy-checkout { overflow-x: hidden; }
body.zy-checkout {
	--zy-red: #e63a2e;
	--zy-text: #000;
	--zy-muted: #707070;
	--zy-border: #dedede;
	--zy-grey: #f5f5f5;
	margin: 0;
	background: #fff;
	color: var(--zy-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
}
body.zy-checkout *,
body.zy-checkout .wc-block-components-title,
body.zy-checkout h1, body.zy-checkout h2, body.zy-checkout h3 {
	font-family: inherit;
	letter-spacing: normal;
}
body.zy-checkout a { color: var(--zy-red); }

/* ---------- Header ---------- */
.zy-co-header { border-bottom: 1px solid #e6e6e6; background: #fff; }
.zy-co-header__inner {
	max-width: 1036px;
	margin: 0 auto;
	padding: 21px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
}
.zy-co-logo img { display: block; width: 150px; height: auto; }
.zy-co-logo span { font-size: 24px; font-weight: 700; color: #000; }
.zy-co-bag { color: var(--zy-red); display: inline-flex; padding: 6px; }

/* ---------- Two columns: white form | grey summary ---------- */
.zy-co-main { position: relative; }
body.zy-checkout .wc-block-checkout,
body.zy-checkout .wp-block-woocommerce-checkout {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
body.zy-checkout .wc-block-components-sidebar-layout.is-large {
	display: flex;
	flex-wrap: nowrap;
	gap: 0 !important;
	margin: 0;
	min-height: calc(100vh - 180px);
	background: linear-gradient(90deg, #fff 50%, var(--zy-grey) 50%);
	border-top: 0;
}
body.zy-checkout .is-large .wc-block-components-main {
	width: 50%;
	flex: 0 0 50%;
	padding: 38px 38px 80px 24px;
	box-sizing: border-box;
}
body.zy-checkout .is-large .wc-block-components-main > * {
	max-width: 480px;
	margin-left: auto;
}
body.zy-checkout .is-large .wc-block-components-sidebar {
	width: 50%;
	flex: 0 0 50%;
	padding: 38px 24px 38px 38px;
	box-sizing: border-box;
	margin: 0;
	background: transparent;
}
body.zy-checkout .is-large .wc-block-components-sidebar > * { max-width: 420px; }
body.zy-checkout .is-large .wc-block-components-sidebar .wc-block-components-checkout-order-summary__title { display: none; }

/* Grey under the form-area on mobile summary toggle */
body.zy-checkout .wc-block-components-sidebar-layout:not(.is-large) .wc-block-components-sidebar,
body.zy-checkout .wc-block-components-sidebar-layout:not(.is-large) .wc-block-components-checkout-order-summary__title { background: var(--zy-grey); }
body.zy-checkout .wc-block-components-sidebar-layout:not(.is-large) .wc-block-components-main { padding: 20px 20px 0; }

/* Panels without borders (summary) */
body.zy-checkout .wc-block-components-sidebar .wc-block-components-panel,
body.zy-checkout .wc-block-components-sidebar .wc-block-components-totals-wrapper,
body.zy-checkout .wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-block,
body.zy-checkout .wc-block-components-sidebar .wc-block-components-order-summary {
	border: 0 !important;
	background: transparent;
}
body.zy-checkout .wc-block-components-sidebar .wc-block-components-totals-wrapper { padding: 8px 0; }

/* ---------- Section titles (Contact / Delivery / Shipping method / Payment) ---------- */
body.zy-checkout .wc-block-components-checkout-step { padding: 0 !important; margin: 0 0 32px !important; }
body.zy-checkout .wc-block-components-checkout-step::before,
body.zy-checkout .wc-block-components-checkout-step::after,
body.zy-checkout .wc-block-components-checkout-step__container::after { display: none !important; content: none !important; }
body.zy-checkout .wc-block-components-checkout-step__heading { margin: 0 0 12px; }
body.zy-checkout .wc-block-components-checkout-step__title {
	font-size: 21px !important;
	font-weight: 600 !important;
	line-height: 1.3;
	margin: 0;
}
body.zy-checkout .wc-block-components-checkout-step__heading-content a { font-size: 14px; text-decoration: underline; }
body.zy-checkout .wc-block-components-checkout-step__description { color: var(--zy-muted); font-size: 14px; margin-bottom: 12px; }
body.zy-checkout .wc-block-components-checkout-step__content { padding: 0 !important; }

/* ---------- Inputs (Shopify look) ---------- */
body.zy-checkout .wc-block-components-text-input input,
body.zy-checkout .wc-block-components-text-input textarea,
body.zy-checkout .wc-blocks-components-select .wc-blocks-components-select__select,
body.zy-checkout .wc-block-components-combobox .wc-block-components-combobox-control input,
body.zy-checkout .wc-block-components-form .wc-block-components-text-input input,
body.zy-checkout .wc-block-components-address-form select {
	border: 1px solid var(--zy-border) !important;
	border-radius: 5px !important;
	background: #fff !important;
	color: #000 !important;
	font-size: 14px !important;
	min-height: 50px;
	box-shadow: none !important;
	outline: none;
}
body.zy-checkout .wc-block-components-text-input input:focus,
body.zy-checkout .wc-blocks-components-select .wc-blocks-components-select__select:focus,
body.zy-checkout .wc-block-components-combobox .wc-block-components-combobox-control input:focus {
	border-color: var(--zy-red) !important;
	box-shadow: 0 0 0 1px var(--zy-red) !important;
}
body.zy-checkout .wc-block-components-text-input label,
body.zy-checkout .wc-blocks-components-select__label,
body.zy-checkout .wc-block-components-combobox .wc-block-components-combobox-control label {
	color: var(--zy-muted) !important;
	font-size: 14px;
}
body.zy-checkout .wc-block-components-text-input.is-active label,
body.zy-checkout .wc-blocks-components-select__label { font-size: 12px; }
body.zy-checkout .wc-block-components-address-form { gap: 0 14px; }

/* Checkboxes */
body.zy-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox] {
	border: 1px solid var(--zy-border);
	border-radius: 4px;
	width: 18px; height: 18px; min-width: 18px; min-height: 18px;
	background: #fff;
}
body.zy-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked {
	background: var(--zy-red);
	border-color: var(--zy-red);
}
body.zy-checkout .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: #fff; }
body.zy-checkout .wc-block-components-checkbox__label { font-size: 14px; }

/* Shipping method box & payment box */
body.zy-checkout .wc-block-components-radio-control,
body.zy-checkout .wc-block-components-radio-control-accordion-option,
body.zy-checkout .wc-block-components-shipping-rates-control__no-results-notice,
body.zy-checkout .wc-block-components-notice-banner.is-info {
	border-radius: 5px;
}
body.zy-checkout .wc-block-components-radio-control--highlight-checked::after,
body.zy-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
body.zy-checkout .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
	box-shadow: inset 0 0 0 1px var(--zy-red) !important;
	border-radius: 5px;
}
body.zy-checkout .wc-block-components-radio-control__input:checked { border-color: var(--zy-red) !important; }
body.zy-checkout .wc-block-components-radio-control__input:checked::before { background: var(--zy-red) !important; }
body.zy-checkout .wc-block-checkout__no-shipping-placeholder,
body.zy-checkout .wc-block-components-shipping-rates-control__no-results-notice {
	background: var(--zy-grey);
	border: 0;
	color: var(--zy-muted);
	text-align: center;
	padding: 16px;
}

/* Express checkout (top) */
body.zy-checkout .wc-block-components-express-payment--checkout { margin-bottom: 24px; }
body.zy-checkout .wc-block-components-express-payment__title-container::before,
body.zy-checkout .wc-block-components-express-payment__title-container::after { border-color: #e6e6e6; }
body.zy-checkout .wc-block-components-express-payment__title {
	font-size: 14px !important;
	font-weight: 400 !important;
	color: var(--zy-muted);
}
body.zy-checkout .wc-block-components-express-payment__content { border: 0 !important; padding: 0 !important; }
body.zy-checkout .wc-block-components-express-payment-continue-rule {
	color: var(--zy-muted);
	font-size: 13px;
	text-transform: uppercase;
}

/* Hide things Shopify doesn't show */
body.zy-checkout .wp-block-woocommerce-checkout-order-note-block,
body.zy-checkout .wc-block-checkout__order-notes,
body.zy-checkout .wc-block-components-checkout-return-to-cart-button { display: none !important; }

/* ---------- Pay / Place order button ---------- */
body.zy-checkout .wc-block-checkout__actions_row { display: block; }
body.zy-checkout .wc-block-components-checkout-place-order-button,
body.zy-checkout .wc-block-checkout__actions .wc-block-components-button:not(.is-link) {
	width: 100% !important;
	min-height: 56px;
	background: var(--zy-red) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 5px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	box-shadow: none !important;
	text-transform: none;
}
body.zy-checkout .wc-block-components-checkout-place-order-button:hover { filter: brightness(0.93); }
body.zy-checkout .wc-block-checkout__terms { font-size: 12px; color: var(--zy-muted); margin: 16px 0; }

/* ---------- Order summary (right) ---------- */
body.zy-checkout .wc-block-components-order-summary-item { padding: 8px 0; }
body.zy-checkout .wc-block-components-order-summary-item__image > img {
	width: 64px;
	max-width: 64px;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	background: #fff;
}
body.zy-checkout .wc-block-components-order-summary-item__image { width: 64px; }
body.zy-checkout .wc-block-components-order-summary-item__quantity {
	background: #000 !important;
	color: #fff !important;
	border: 2px solid #fff !important;
	box-shadow: none !important;
	min-width: 22px; min-height: 22px;
	font-size: 12px;
	font-weight: 600;
}
body.zy-checkout .wc-block-components-product-name { font-size: 14px; font-weight: 400; color: #000; }
body.zy-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-metadata,
body.zy-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-price { font-size: 12px; color: var(--zy-muted); }
body.zy-checkout .wc-block-components-order-summary-item__total-price { font-size: 14px; font-weight: 400; }

body.zy-checkout .wc-block-components-totals-item { font-size: 14px; padding: 3px 0; }
body.zy-checkout .wc-block-components-totals-item__label { font-weight: 400; }
body.zy-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-size: 19px; font-weight: 600; }
body.zy-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: 19px; font-weight: 600; }
body.zy-checkout .wc-block-components-totals-footer-item .wc-block-formatted-money-amount::before {
	content: "USD ";
	font-size: 12px;
	font-weight: 400;
	color: var(--zy-muted);
	vertical-align: middle;
}

/* Discount code */
body.zy-checkout .wc-block-components-totals-coupon .wc-block-components-panel__button { font-size: 14px; font-weight: 400; }
body.zy-checkout .wc-block-components-totals-coupon__form .wc-block-components-button {
	background: #ececec !important;
	color: var(--zy-muted) !important;
	border: 1px solid var(--zy-border) !important;
	border-radius: 5px !important;
	min-height: 50px;
	box-shadow: none !important;
}

/* Footer link */
.zy-co-policies {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 24px 40px;
	box-sizing: border-box;
}
.zy-co-policies a { font-size: 13px; text-decoration: underline; }
@media (min-width: 900px) {
	.zy-co-policies { position: absolute; bottom: 0; left: 0; width: 50%; max-width: none; padding: 0 38px 30px 24px; }
	.zy-co-policies a { display: block; max-width: 480px; margin-left: auto; }
}

/* Hide the WordPress/Hostinger floating extras on checkout */
body.zy-checkout .wp-block-template-part,
body.zy-checkout header.wp-block-template-part,
body.zy-checkout footer.wp-block-template-part { display: none !important; }

@media (max-width: 1100px) { .zy-co-header__inner { padding: 16px 20px; } .zy-co-logo img { width: 110px; } }

/* Summary: name + price only, like Shopify */
body.zy-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-metadata__description,
body.zy-checkout .wc-block-components-order-summary-item__individual-prices,
body.zy-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-price,
body.zy-checkout .wc-block-checkout__guest-checkout-notice { display: none !important; }
body.zy-checkout .wc-block-components-totals-wrapper:empty { display: none; }
body.zy-checkout .wc-block-components-sidebar .wc-block-components-totals-coupon { border: 1px solid var(--zy-border); border-radius: 5px; background: #fff; padding: 0 12px; margin: 8px 0 16px; }
body.zy-checkout .wc-block-components-sidebar .wc-block-components-totals-coupon .wc-block-components-panel__button { color: var(--zy-muted); padding: 14px 0; }
body.zy-checkout .wc-block-components-sidebar-layout:not(.is-large) .wc-block-components-checkout-order-summary__title { padding-left: 20px; padding-right: 20px; }

/* ===== v1.2: functions + mobile ===== */

/* Address rows like Shopify: First|Last, City|State|ZIP, full-width the rest */
body.zy-checkout .wc-block-components-address-form {
	display: flex !important;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
}
body.zy-checkout .wc-block-components-address-form > * {
	margin: 0 !important;
	box-sizing: border-box;
	width: 100% !important;
	flex: 0 0 100%;
}
body.zy-checkout .wc-block-components-address-form > .wc-block-components-address-form__first_name,
body.zy-checkout .wc-block-components-address-form > .wc-block-components-address-form__last_name {
	width: calc(50% - 6px) !important;
	flex: 0 0 calc(50% - 6px);
}
body.zy-checkout .wc-block-components-address-form > .wc-block-components-address-form__city,
body.zy-checkout .wc-block-components-address-form > .wc-block-components-address-form__state,
body.zy-checkout .wc-block-components-address-form > .wc-block-components-address-form__postcode {
	width: calc(33.333% - 8px) !important;
	flex: 0 0 calc(33.333% - 8px);
}
body.zy-checkout .wc-block-components-address-form__address_2-toggle { display: none !important; }

/* Contact: newsletter checkbox + Sign in link */
body.zy-checkout .wc-block-checkout__contact-fields { gap: 12px; }
body.zy-checkout .wc-block-checkout__contact-fields .wc-block-components-checkbox { margin-top: 12px; }
body.zy-checkout .wc-block-checkout__login-prompt,
body.zy-checkout .wc-block-components-checkout-step__heading-content a { color: var(--zy-red) !important; text-decoration: underline; font-size: 14px; }

/* Shipping method */
body.zy-checkout .wc-block-components-shipping-rates-control .wc-block-components-radio-control__option {
	border: 1px solid var(--zy-border);
	border-radius: 5px;
	padding-top: 14px;
	padding-bottom: 14px;
}
body.zy-checkout .wc-block-components-radio-control__option-checked { background: #fef6f5; }
body.zy-checkout .wc-block-components-shipping-rates-control .wc-block-components-radio-control__label { font-size: 14px; }
body.zy-checkout .wc-block-components-shipping-rates-control .wc-block-components-radio-control__secondary-label { font-weight: 600; }

/* Payment header: logos + secure line */
body.zy-checkout .wp-block-woocommerce-checkout-payment-block .wc-block-components-checkout-step__heading {
	display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 2px;
}
.zy-cards { display: inline-flex; gap: 4px; align-items: center; }
.zy-card {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 24px; border-radius: 4px; box-sizing: border-box;
	font: 800 8px/1 Arial, sans-serif; letter-spacing: .02em; color: #fff;
}
.zy-visa { background: #1434cb; font-size: 10px; font-style: italic; }
.zy-amex { background: #1f72cd; }
.zy-disc { background: #fff; color: #231f20; border: 1px solid #ddd; font-size: 6px; }
.zy-mc { background: #252525; position: relative; }
.zy-mc i { display: block; width: 14px; height: 14px; border-radius: 50%; background: #eb001b; margin-right: -5px; }
.zy-mc i + i { background: #f79e1b; margin: 0 0 0 0; opacity: .9; }
.zy-secure { margin: 0 0 14px; color: var(--zy-muted); font-size: 13px; }

/* Discount code: always-open field + Apply (like Shopify) */
body.zy-checkout .wc-block-components-sidebar .wc-block-components-totals-coupon { border: 0; padding: 0; background: transparent; }
body.zy-checkout .wc-block-components-totals-coupon .wc-block-components-panel__button[aria-expanded="true"] { display: none !important; }
body.zy-checkout .wc-block-components-totals-coupon .wc-block-components-panel__content { padding: 0 !important; }
body.zy-checkout .wc-block-components-totals-coupon__form { display: flex; gap: 10px; align-items: stretch; margin: 0; }
body.zy-checkout .wc-block-components-totals-coupon__form .wc-block-components-text-input { flex: 1; margin: 0; }
body.zy-checkout .wc-block-components-totals-coupon__form .wc-block-components-button { min-height: 50px; padding: 0 18px; flex: 0 0 auto; }
body.zy-checkout .wc-block-components-totals-coupon__form .wc-block-components-button:not(:disabled) { background: var(--zy-red) !important; color: #fff !important; border-color: var(--zy-red) !important; }

/* ---------- Mobile ---------- */
@media (max-width: 749px) {
	.zy-co-header__inner { padding: 10px 20px !important; }
	.zy-co-logo img { width: 84px !important; }

	body.zy-checkout .wc-block-components-address-form > .wc-block-components-address-form__city { width: 100% !important; flex-basis: 100%; }
	body.zy-checkout .wc-block-components-address-form > .wc-block-components-address-form__state,
	body.zy-checkout .wc-block-components-address-form > .wc-block-components-address-form__postcode {
		width: calc(50% - 6px) !important; flex: 0 0 calc(50% - 6px);
	}

	/* Top summary toggle */
	body.zy-checkout .wc-block-components-sidebar-layout:not(.is-large) .wc-block-components-checkout-order-summary__title {
		padding: 16px 20px !important; margin: 0; border-bottom: 1px solid #e6e6e6;
	}
	body.zy-checkout .wc-block-components-checkout-order-summary__title-text { font-size: 14px; color: var(--zy-red); font-weight: 400; }
	body.zy-checkout .wc-block-components-checkout-order-summary__title-price { font-size: 17px; font-weight: 600; }
	body.zy-checkout .wc-block-components-sidebar-layout:not(.is-large) .wc-block-components-checkout-order-summary__content {
		padding: 12px 20px 16px !important; box-sizing: border-box; border-bottom: 1px solid #e6e6e6;
	}
	body.zy-checkout .wc-block-components-sidebar-layout:not(.is-large) .wc-block-components-sidebar { padding: 0 !important; border: 0; }

	/* Bottom summary (before Pay now) */
	body.zy-checkout .wc-block-components-main .wp-block-woocommerce-checkout-order-summary-block,
	body.zy-checkout .wc-block-components-main .wc-block-components-checkout-order-summary {
		border: 0 !important; background: var(--zy-grey); border-radius: 8px; padding: 4px 16px;
	}
	body.zy-checkout .wc-block-components-main .wc-block-components-totals-wrapper,
	body.zy-checkout .wc-block-components-main .wc-block-components-order-summary { border: 0 !important; padding-left: 0; padding-right: 0; }

	body.zy-checkout .wc-block-components-checkout-step { margin-bottom: 28px !important; }
	body.zy-checkout .wc-block-components-checkout-step__title { font-size: 19px !important; }
	body.zy-checkout .wc-block-components-checkout-place-order-button { min-height: 52px; }
	.zy-co-policies { padding: 0 20px 30px; }
}

/* ===== v1.2.1 fixes ===== */
body.zy-checkout .wc-block-components-address-form > *,
body.zy-checkout .wc-block-components-address-form > * > *,
body.zy-checkout .wc-block-components-address-form .wc-blocks-components-select,
body.zy-checkout .wc-block-components-address-form .wc-blocks-components-select__container { margin-top: 0 !important; }

body.zy-checkout .wc-block-components-totals-coupon__form { flex-direction: row !important; flex-wrap: nowrap !important; }
body.zy-checkout .wc-block-components-totals-coupon__form .wc-block-components-button { width: auto !important; }
body.zy-checkout .wc-block-components-totals-coupon__form .wc-block-components-button:disabled {
	background: #ececec !important; color: #9a9a9a !important; border: 1px solid var(--zy-border) !important; opacity: 1 !important;
}

body.zy-checkout .wc-block-components-main .wc-block-components-checkout-order-summary__content,
body.zy-checkout .wc-block-components-main .wc-block-components-order-summary-item,
body.zy-checkout .wc-block-components-main .wc-block-components-totals-coupon { border: 0 !important; }
body.zy-checkout .wc-block-components-main .wc-block-components-checkout-order-summary__content { padding: 0 !important; }
body.zy-checkout .wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button,
body.zy-checkout .wc-block-components-totals-coupon__form > .wc-block-components-button {
	flex: 0 0 auto !important; width: auto !important; min-width: 0 !important; max-width: 120px !important;
}
body.zy-checkout .wc-block-components-totals-coupon__form > .wc-block-components-text-input { flex: 1 1 auto !important; min-width: 0; width: auto !important; }
body.zy-checkout .wc-block-components-totals-coupon__form > .wc-block-components-text-input input { width: 100% !important; }
body.zy-checkout .wc-block-components-main .checkout-order-summary-block-fill { border: 0 !important; padding: 0 !important; }
