/* Additions for the CMS port. theme.css holds the design; everything the CMS needs on top lives here. */

/* Coming Soon: centred top row. */
.di-cs-top { display: flex; justify-content: center; }

/* Slide-in cart (Online Store): the store script fills .di-drawer__content; its body and footer sit in the panel's column. */
.di-drawer__content { display: contents; }
html.dios-lock { overflow: hidden; }
.di-drawer__panel .di-qty { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--di-c-hair); border-radius: 999px; padding: 2px; }
.di-drawer__panel .di-qty__btn { width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; font: inherit; cursor: pointer; }
.di-drawer__panel .di-qty__btn:disabled { opacity: 0.35; cursor: default; }
.di-drawer__panel .di-qty__n { min-width: 1.5em; text-align: center; font-variant-numeric: tabular-nums; }

/* Checkout (theme templates/shop-checkout.php): pieces the page's scripts provide. */
.di-shop-block-checkout [hidden] { display: none !important; }
.di-shop-block-checkout__add-note .di-shop-block-components-textarea-wrapper { margin-top: 12px; }
.di-shop-block-checkout__add-note .di-shop-block-components-textarea { width: 100%; min-height: 6em; box-sizing: border-box; font: inherit; padding: 12px; border: 1px solid #50575e; border-radius: 4px; }
.di-shop-block-checkout .di-shop-block-components-notice-banner[data-dios-error]:empty { display: none; }
.di-shop-block-checkout .di-shop-block-components-checkout-place-order-button.is-busy { opacity: 0.7; pointer-events: none; }
.di-shop-block-checkout .di-shop-block-components-address-form__address_2-toggle { cursor: pointer; }

/* Order received */
.di-order-received .di-shop-order-overview { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 16px 32px; }
.di-order-received .di-shop-order-overview li { font-size: 14px; color: var(--di-c-muted); text-transform: uppercase; letter-spacing: 0.02em; }
.di-order-received .di-shop-order-overview strong { display: block; margin-top: 4px; font-size: 16px; color: var(--di-c-text); text-transform: none; letter-spacing: 0; }
.di-order-received .di-shop-thankyou-order-received { font-size: 1.25rem; font-weight: 600; margin: 0 0 24px; }
.di-order-received .di-shop-order-details__title { font-size: 1.5rem; margin: 32px 0 12px; }
.di-order-received .shop_table { width: 100%; border-collapse: collapse; }
.di-order-received .shop_table :is(th, td) { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--di-c-hair); vertical-align: top; }
.di-order-received .shop_table :is(th, td):last-child { text-align: right; }
.di-order-received .di-shop-item-meta { list-style: none; margin: 4px 0 0; padding: 0; font-size: 14px; color: var(--di-c-muted); }
.di-order-received .di-shop-item-meta p { display: inline; margin: 0; }
.di-order-account { margin-top: 32px; }
.di-order-received .di-shop { max-width: none; margin: 0; }

/* Short pages (account, set password, 404): the footer sits at the bottom of the window, with no blank strip below it. */
.di-site-blocks { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.di-site-blocks > main { flex: 1 0 auto; }
.di-site-blocks > header, .di-site-blocks > footer { flex-shrink: 0; }

/* Checkout "+ Add apartment, suite, etc.": the field stays hidden until the link is clicked. */
[data-di-toggled][hidden] { display: none !important; }

/* Required-field asterisks on account and checkout forms (the live site adds this rule inline). */
.di-shop form .form-row .required { visibility: visible; }
