/*
Theme Name: Razzi Child
Template: razzi
Description: Child theme for Razzi, customized for the Pakistan-based abaya/modest-wear store project.
Version: 1.0.2
Author: Your Name
*/

/* Add your custom CSS overrides below this line */

/*
 * Checkout page fix: WooCommerce's Checkout block renders full-width here
 * (no max-width applied), unlike every other page which is constrained to
 * Razzi's standard 1170px container. Root cause unclear (block markup looks
 * structurally different from the Cart page's, which is NOT affected), but
 * this reliably matches the checkout block's width to the rest of the site.
 */
.wp-block-woocommerce-checkout {
	max-width: 1170px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/*
 * Footer copyright row: Razzi's footer-main flex row left-aligns its items
 * by default. The "footer-right" slot (payment icons) is currently unused
 * but still flex-grows to fill half the row, so centering .footer-container
 * alone has no visible effect -- footer-left/footer-right each already
 * stretch to 50% width, leaving no extra space for justify-content to
 * distribute. Hide the empty footer-right slot and center the text inside
 * footer-left instead. Revisit this once payment icons are actually added
 * to footer-right.
 */
.footer-main.site-info .footer-container {
	justify-content: center;
}

.footer-main.site-info .footer-items.footer-right {
	display: none;
}

.footer-main.site-info .footer-items.footer-left {
	justify-content: center;
}

/*
 * Checkout block text size: WooCommerce Blocks ships several of its own
 * sub-13px sizes (country/address field labels, shipping & payment method
 * names, the order summary's product name/metadata and Subtotal/Shipping
 * lines, the terms text) that read noticeably smaller than the rest of the
 * checkout form (16px inputs/labels) and the site's own 16px base. The
 * "Total" row itself is already 20px and untouched here. Bring the small
 * ones up to match.
 */
.wp-block-woocommerce-checkout .wc-block-components-text-input label,
.wp-block-woocommerce-checkout .wc-block-components-address-form__country label,
.wp-block-woocommerce-checkout .wc-block-components-radio-control__label,
.wp-block-woocommerce-checkout .wc-block-components-totals-item__label,
.wp-block-woocommerce-checkout .wc-block-components-totals-item__value,
.wp-block-woocommerce-checkout .wc-block-components-product-name,
.wp-block-woocommerce-checkout .wc-block-components-product-metadata,
.wp-block-woocommerce-checkout .wc-block-checkout__terms {
	font-size: 16px;
}

/*
 * Order-received ("Thank you") page: this page uses WooCommerce's classic
 * shortcode-based markup (.woocommerce / .woocommerce-order), not the
 * Checkout block, so the .wp-block-woocommerce-checkout width fix above
 * doesn't reach it. Same underlying problem though -- no max-width applied,
 * so it stretches edge-to-edge instead of matching the site's standard
 * 1170px container (confirmed against .page-header .container above it).
 */
body.woocommerce-order-received .woocommerce {
	max-width: 1170px;
	margin-left: auto;
	margin-right: auto;
}

/*
 * Order-received "Continue Shopping" button (added in functions.php via
 * woocommerce_thankyou): WooCommerce's generic .button class isn't styled
 * by Razzi outside specific notice/account contexts, so it rendered as
 * plain unstyled inline text. Styled explicitly to match the site's other
 * solid black sharp-corner buttons (e.g. the Checkout block's own Place
 * Order button: same background, padding and zero border-radius).
 */
.razzi-child-thankyou-continue {
	margin-top: 24px;
	text-align: center;
}

.razzi-child-thankyou-continue .button {
	display: inline-block;
	background-color: #32373c;
	color: #fff;
	padding: 18px 30px;
	font-size: 16px;
	border-radius: 0;
	text-decoration: none;
}

.razzi-child-thankyou-continue .button:hover {
	background-color: #000;
	color: #fff;
}
