/*
Theme Name: Apricot
Template: twentytwentyfive
Description: Apricot Coffee child theme of Twenty Twenty-Five: colours, fonts, header and footer. Edit everything in Appearance → Editor.
Version: 0.4.49
Text Domain: apricot
*/

/* Keep the sticky header above page content */
header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
body.admin-bar header.wp-block-template-part { top: 32px; }
/* Hero/section text readability on photos, same idea as on the Barista site */
.has-text-shadow, .has-text-shadow * { text-shadow: 0 0 18px rgba(0, 0, 0, .85), 0 0 6px rgba(0, 0, 0, .6); }
/* Full-width sections run straight into the footer (no root block gap above it) */
.wp-site-blocks > footer { margin-block-start: 0; }
/* Carousel Slider Block extras (colours are set in theme.json settings.custom.carousel-block) */
.wp-block-cb-carousel-v2.cb-hero-slider .swiper-horizontal { margin-bottom: 0; }
.wp-block-cb-carousel-v2 .wp-block-image img { width: 100%; }
/* Short centred divider under section titles */
.wp-block-separator.has-accent-1-background-color:not(.is-style-wide):not(.is-style-dots) { max-width: 120px; margin-left: auto; margin-right: auto; }
/* Photo carousel: arrows sit in the side margins instead of over the photos */
.wp-block-cb-carousel-v2.apricot-photo-carousel { --wp--custom--carousel-block--navigation-sides-offset: -34px; }
/* Strong Testimonials: the homepage review slider (view CSS class "apricot-reviews-slider") */
.strong-view.apricot-reviews-slider { color: #fff; text-align: center; }
.strong-view.apricot-reviews-slider .wpmtst-testimonial,
.strong-view.apricot-reviews-slider .wpmtst-testimonial-inner { background: transparent; border: 0; box-shadow: none; }
.strong-view.apricot-reviews-slider .wpmtst-testimonial-content { font-family: var(--wp--preset--font-family--merriweather); font-style: italic; font-size: 1.35rem; line-height: 1.7; color: #fff; }
.strong-view.apricot-reviews-slider .testimonial-name { font-family: var(--wp--preset--font-family--oswald); text-transform: uppercase; letter-spacing: .08em; color: #c7a17a; }
/* Dots like the Carousel Slider Block ones: 9px circles, grey at half opacity, gold when active */
.strong-view.apricot-reviews-slider .wpmslider-pager { display: flex; justify-content: center; gap: 8px; }
.strong-view.apricot-reviews-slider .wpmslider-pager-item { display: block; line-height: 0; margin: 0 !important; padding: 0 !important; }
.strong-view.apricot-reviews-slider .wpmslider-pager-link { display: block; width: 9px !important; height: 9px !important; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 50%; background: #7a7a7a !important; opacity: .5; font-size: 0; line-height: 0; box-shadow: none !important; }
.strong-view.apricot-reviews-slider .wpmslider-pager-link::before, .strong-view.apricot-reviews-slider .wpmslider-pager-link::after { content: none !important; }
.strong-view.apricot-reviews-slider .wpmslider-pager-link.active { background: #c7a17a !important; opacity: 1; }
.strong-view.apricot-reviews-slider .wpmslider-prev, .strong-view.apricot-reviews-slider .wpmslider-next { color: #c7a17a; }
/* Testimonials: no extra padding around each review (the dark section already has 80px), compact dots;
   smaller text on phones so even the longest review fits on screen (the slider only autoplays when fully visible) */
.strong-view.apricot-reviews-slider { margin-top: 1rem !important; margin-bottom: 0 !important; }
.strong-view.apricot-reviews-slider .wpmtst-testimonial, .strong-view.apricot-reviews-slider .wpmtst-testimonial-inner { padding: 0 !important; margin: 0 !important; }
.strong-view.apricot-reviews-slider .wpmslider-pager { margin: 0 !important; }
.strong-view.apricot-reviews-slider.slider-container .wpmslider-wrapper .wpmslider-controls { padding: 1.25rem 0 0 !important; margin: 0 !important; height: auto !important; min-height: 0 !important; line-height: 0; }
.strong-view.apricot-reviews-slider .wpmslider-wrapper, .strong-view.apricot-reviews-slider .wpmslider-controls { margin-bottom: 0 !important; }
@media (max-width: 781px) {
	.strong-view.apricot-reviews-slider .wpmtst-testimonial-content { font-size: 1.05rem; line-height: 1.6; }
}
/* Name below the review text (the template prints it first) */
.strong-view.apricot-reviews-slider .wpmtst-testimonial-inner { display: flex !important; flex-direction: column; }
.strong-view.apricot-reviews-slider .wpmtst-testimonial-content { order: 1; }
.strong-view.apricot-reviews-slider .testimonial-name { order: 2; margin: 1rem 0 0 !important; }
/* Photo carousel: photos fade out into the page at both edges (arrows sit outside the masked area) */
.wp-block-cb-carousel-v2.apricot-photo-carousel .swiper {
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
/* Header menu: current page (and the parent of a current sub-page) in gold, like the original */
.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.wp-block-navigation .current-menu-ancestor > .wp-block-navigation-item__content,
.wp-block-navigation .wp-block-navigation-item__content[aria-current="page"] { color: var(--wp--preset--color--accent-1); }
/* Header menu hover gold (the Navigation block's own text colour would otherwise win) */
.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation .wp-block-navigation-item__content:focus-visible { color: var(--wp--preset--color--accent-1) !important; }
/* Header dropdowns (desktop): start at the bottom edge of the menu bar and line their text up under the
   parent item's text. --apricot-submenu-drop = distance from the menu item's bottom to the bar's bottom. */
@media (min-width: 600px) {
	header .wp-block-navigation { --apricot-submenu-drop: 29px; }
	header .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container {
		top: calc(100% + var(--apricot-submenu-drop)) !important;
		left: -15px !important;
		right: auto !important;
	}
	/* invisible bridge so the hover isn't lost while moving down into the dropdown */
	header .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container::before {
		content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--apricot-submenu-drop);
	}
}
/* Carousel/slider controls: no focus outline after a mouse/touch click (keyboard focus ring kept) */
.wp-block-cb-carousel-v2 .swiper-button-prev:focus:not(:focus-visible),
.wp-block-cb-carousel-v2 .swiper-button-next:focus:not(:focus-visible),
.wp-block-cb-carousel-v2 .swiper-pagination-bullet:focus:not(:focus-visible),
.strong-view .wpmslider-prev:focus:not(:focus-visible),
.strong-view .wpmslider-next:focus:not(:focus-visible),
.strong-view .wpmslider-pager-link:focus:not(:focus-visible) { outline: none; box-shadow: none; }

/* Menu (Itallap/Étlap): name - flexible line - price on one row, plus a
   compact right-aligned badge for item tags (New/Jeges/Vega/etc) - same
   visual role as the original production site's .edgtf-cml-line/.edgtf-cml-label
   (Barista theme), re-implemented here since that theme's CSS isn't loaded
   on this (block-theme) site. */
.apricot-menu-row { display: flex; align-items: baseline; flex-wrap: nowrap; gap: 0; }
.apricot-menu-row > *:first-child, .apricot-menu-row > *:last-child { white-space: nowrap; flex: 0 0 auto; font-family: var(--wp--preset--font-family--oswald); font-weight: 700; }
.apricot-menu-row > .apricot-menu-line { flex: 1 1 auto; min-width: 20px; margin: 0 16px; border-bottom: 1px solid rgba(0, 0, 0, .25); }
.apricot-menu-label { display: inline-block; padding: 2px 8px; font-weight: 700; }

/* Esemény/Tréning: square image/text tiles, edge to edge, on a full-width beige band, laid
   out like the original's 3x2 edgtf_elements_holder. Markup is in mobile order (each programme's image,
   then its text); from 1025px `order` lays the same tiles out as the
   original checkerboard (HBT-img HBT AT-img / Xmas Xmas-img AT). */
.apricot-tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
/* Wider than the theme's 1240px wide size; the post content padding keeps it off the screen edges */
.is-layout-constrained > .apricot-tiles.alignwide { max-width: 1600px; }
/* Every tile is square; text is centred in it (a tile only grows taller if its text cannot fit) */
.apricot-tiles > .apricot-tile { margin: 0; aspect-ratio: 1 / 1; }
.apricot-tiles > .apricot-tile-text { display: flex; flex-direction: column; justify-content: center; padding: 10%; }
.apricot-tile-more { font-family: var(--wp--preset--font-family--oswald); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; }
.apricot-tile-more a { color: inherit; text-decoration: none; }
@media (min-width: 1025px) {
	.apricot-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.apricot-tiles > .apricot-tile-hbt-image { order: 1; }
	.apricot-tiles > .apricot-tile-hbt { order: 2; }
	.apricot-tiles > .apricot-tile-at-image { order: 3; }
	.apricot-tiles > .apricot-tile-xmas { order: 4; }
	.apricot-tiles > .apricot-tile-xmas-image { order: 5; }
	.apricot-tiles > .apricot-tile-at { order: 6; }
}

/* Header on phones: the menu collapses to its hamburger (below 600px, core Navigation
   breakpoint), so tighten the icon spacing and put the hamburger last, right of account/cart. */
@media (max-width: 599px) {
	header .apricot-header-actions { gap: 0.4rem; }
	header .apricot-header-actions > .wp-block-navigation { order: 3; }
}

/* Focus rings: none after mouse clicks/taps (core outlines any :focus), but keyboard users
   (:focus-visible) get a gold outline so they can see where they are (WCAG 2.4.7). */
.wp-site-blocks :focus { outline: none; }
.wp-site-blocks :focus-visible { outline: 2px solid var(--wp--preset--color--accent-1); outline-offset: 3px; }

/* Cross-fade between pages (supporting browsers); the sticky header stays put. Off for
   people who've asked their device for reduced motion. */
@view-transition { navigation: auto; }
header.wp-block-template-part { view-transition-name: site-header; }
@media (prefers-reduced-motion: reduce) {
	@view-transition { navigation: none; }
}

/* Homepage bento grid ("Amit rólunk tudni kell"): intro + video, then HBT wide + reviews, then
   Afternoon Tea, visit and hours. One column on narrow screens, in reading order. */
.apricot-bento { display: grid; grid-template-columns: 1fr; gap: 16px; }
.apricot-bento > .apricot-bento-tile { margin: 0; }
.apricot-bento > .apricot-bento-hbt,
.apricot-bento > .apricot-bento-at,
.apricot-bento > .apricot-bento-visit,
.apricot-bento > .apricot-bento-reviews,
.apricot-bento > .apricot-bento-about { padding: var(--wp--preset--spacing--50); }
.apricot-bento > .apricot-bento-about { display: flex; flex-direction: column; justify-content: center; }
/* Video fills its tile edge to edge */
.apricot-bento-video > .wp-block-embed { margin: 0; }
/* Reviews in a tile: quote text at the tiles' body size, dots only */
.apricot-bento-reviews .strong-view.apricot-reviews-slider .wpmtst-testimonial-content { font-size: var(--wp--preset--font-size--medium); line-height: 1.6; }
.apricot-bento-reviews .strong-view.apricot-reviews-slider .wpmslider-prev,
.apricot-bento-reviews .strong-view.apricot-reviews-slider .wpmslider-next { display: none; }
/* Photos run to the tile edges */
.apricot-bento > .apricot-bento-tile > .wp-block-image:first-child { margin: calc(-1 * var(--wp--preset--spacing--50)) calc(-1 * var(--wp--preset--spacing--50)) 0; }
@media (min-width: 782px) {
	.apricot-bento { grid-template-columns: repeat(3, 1fr); grid-template-areas: "about video video" "hbt hbt reviews" "at visit hours"; }
	.apricot-bento > .apricot-bento-hbt { grid-area: hbt; }
	.apricot-bento > .apricot-bento-at { grid-area: at; }
	.apricot-bento > .apricot-bento-visit { grid-area: visit; }
	.apricot-bento > .apricot-bento-hours { grid-area: hours; }
	.apricot-bento > .apricot-bento-reviews { grid-area: reviews; }
	.apricot-bento > .apricot-bento-about { grid-area: about; }
	.apricot-bento > .apricot-bento-video { grid-area: video; }
}

/* Phone action bar (footer part): fixed to the bottom on phones only, same breakpoint as the
   hamburger. Body gets matching bottom padding so the bar never covers the footer. */
.wp-block-group.apricot-mobile-bar { display: none; }
@media (max-width: 599px) {
	.wp-block-group.apricot-mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0; gap: 0; padding: 0 0 env(safe-area-inset-bottom); }
	.apricot-mobile-bar > p { flex: 1; margin: 0; text-align: center; }
	.apricot-mobile-bar > p + p { border-left: 1px solid rgba(255, 255, 255, .2); }
	.apricot-mobile-bar a { display: block; padding: 14px 6px; color: inherit; text-decoration: none; font-family: var(--wp--preset--font-family--oswald); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; }
	body { padding-bottom: calc(52px + env(safe-area-inset-bottom)); }
}

/* Programme pages: text column + sidebar boxes (dates, price) */
.apricot-programme-side > .apricot-box + .apricot-box { margin-top: var(--wp--preset--spacing--40); }
.apricot-box { padding: var(--wp--preset--spacing--50); }
.apricot-box > .wp-block-heading { margin-top: 0; color: inherit; }
.apricot-box .apricot-date-row,
.apricot-box > .apricot-box-row { align-items: center; padding: .6rem 0; margin: 0; border-bottom: 1px solid currentColor; border-bottom-color: color-mix(in srgb, currentColor 20%, transparent); }
.apricot-box .apricot-date-row:last-child { border-bottom: 0; }
.apricot-date-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; }
.apricot-date-row > p { margin: 0; }
/* Events Manager list wrappers inside the dates box */
.apricot-box .em-view-container, .apricot-box .em-events-list { margin: 0; padding: 0; }
.apricot-box .em.pixelbones.em-events-list { display: block; gap: 0; line-height: inherit; }
.apricot-box .em.pixelbones .apricot-date-row > p { margin: 0 !important; } /* EM sets .em.pixelbones p margin with !important */
.apricot-date-row > .apricot-date::first-letter { text-transform: uppercase; }
.apricot-date-row > .apricot-date { font-weight: 700; font-size: var(--wp--preset--font-size--medium); }
.apricot-date-time { display: block; font-weight: 400; }
.apricot-box-row > .apricot-price { font-weight: 700; font-size: var(--wp--preset--font-size--large); white-space: nowrap; }
.apricot-box-row > .apricot-box-value { font-weight: 700; text-align: right; }
.apricot-box > .apricot-box-row { gap: 1rem; }
.apricot-box > p { margin-top: var(--wp--preset--spacing--30); }
.apricot-price-box .wp-block-buttons { margin-top: var(--wp--preset--spacing--30); }
@media (min-width: 782px) {
  .apricot-programme-side { position: sticky; top: 2rem; align-self: flex-start; }
}

/* Default page template pads post-content; let full-width blocks reach the screen edges */
.page-template-default:not(.home) .wp-block-post-content > .alignfull { margin-left: calc(var(--wp--preset--spacing--50) * -1); margin-right: calc(var(--wp--preset--spacing--50) * -1); }

/* Programme page header image */
.wp-block-post-content > .wp-block-image.apricot-page-hero { margin-top: 30px; }
.apricot-page-hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
/* HBT: crop 100px off the top and 30px off the bottom of the 680x454 source, scaling with width */
.page-id-37 .apricot-page-hero img { aspect-ratio: 680 / 324; object-position: 50% 76.9%; }

/* Contact Form 7 - live site's filled fields, current site's type + buttons */
.wpcf7 .apricot-form-grid { display: grid; grid-template-columns: 1fr; gap: 0 1.5rem; }
@media (min-width: 600px) {
  .wpcf7 .apricot-form-grid { grid-template-columns: 1fr 1fr; }
  .wpcf7 .apricot-form-grid > p:has(textarea) { grid-column: 1 / -1; }
}
.wpcf7 .apricot-form-grid > p { margin: 0 0 1.25rem; }
.wpcf7 .apricot-form-grid br { display: none; }
.wpcf7 .apricot-form-label { display: block; margin-bottom: .4rem; font-family: var(--wp--preset--font-family--oswald); font-weight: 600; font-size: var(--wp--preset--font-size--small); letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--contrast); }
.wpcf7 :is(.wpcf7-text, .wpcf7-date, .wpcf7-number, .wpcf7-select, .wpcf7-textarea) {
  width: 100%; box-sizing: border-box; padding: .9rem 1.1rem; border: 2px solid transparent; border-radius: 0;
  background-color: #f6f4ef; color: var(--wp--preset--color--contrast);
  font-family: var(--wp--preset--font-family--merriweather); font-size: var(--wp--preset--font-size--small);
  transition: border-color .15s ease-out;
}
.wpcf7 :is(.wpcf7-text, .wpcf7-date, .wpcf7-number, .wpcf7-select, .wpcf7-textarea):focus { outline: none; border-color: var(--wp--preset--color--accent-1); }
.wpcf7 ::placeholder { font-style: italic; color: var(--wp--preset--color--accent-1); }
.wpcf7 .wpcf7-select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c7a17a' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1rem center; }
.wpcf7 .wpcf7-textarea { min-height: 9rem; resize: vertical; }
.wpcf7 .wpcf7-submit {
  padding: .9em 2em; border: 0; border-radius: 0; cursor: pointer;
  background-color: var(--wp--preset--color--accent-1); color: var(--wp--preset--color--base);
  font-family: var(--wp--preset--font-family--oswald); font-weight: 600; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase;
  transition: background-color .15s ease-out;
}
.wpcf7 .wpcf7-submit:hover { background-color: var(--wp--preset--color--contrast); }
.wpcf7 .wpcf7-not-valid-tip { margin-top: .35rem; font-size: var(--wp--preset--font-size--small); }
.wpcf7 form .wpcf7-response-output { margin: 1.5rem 0 0; padding: .8rem 1.1rem; border-width: 2px; }

/* HBT booking (Events Manager): one collapsible row per date, its booking form inside. EM only takes bookings
   (prices are on the page, vouchers sold in the shop), so its price summary is hidden. */
.apricot-booking-form .em-booking-form-section-summary { display: none; }
.apricot-booking { border-bottom: 1px solid rgba(48, 39, 28, .2); }
.apricot-booking:first-of-type { border-top: 1px solid rgba(48, 39, 28, .2); }
.apricot-booking > summary { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; cursor: pointer; list-style: none; font-family: var(--wp--preset--font-family--oswald); font-weight: 700; font-size: var(--wp--preset--font-size--large); }
.apricot-booking > summary::-webkit-details-marker { display: none; }
.apricot-booking > summary > .apricot-menu-label { margin-left: auto; padding: 2px 8px; font-size: var(--wp--preset--font-size--small); }
.apricot-booking > summary::after { content: ""; width: .55rem; height: .55rem; border-right: 2px solid var(--wp--preset--color--accent-1); border-bottom: 2px solid var(--wp--preset--color--accent-1); transform: rotate(45deg); transition: transform .15s ease-out; }
.apricot-booking[open] > summary::after { transform: rotate(-135deg); }
.apricot-booking-date::first-letter { text-transform: uppercase; }
.apricot-booking-form { padding: .5rem 0 2rem; }
.apricot-booking-form p { margin: 0 0 1.25rem; }
.apricot-booking-form .em-booking-section-title { display: none; }
.apricot-booking-form .em-booking-form-details { display: grid; grid-template-columns: 1fr; gap: 0 1.5rem; }
@media (min-width: 600px) {
  .apricot-booking-form .em-booking-form-details { grid-template-columns: 1fr 1fr; }
  .apricot-booking-form .em-booking-form-details > p:has(textarea),
  .apricot-booking-form .em-booking-form-details > .em-consent-checkbox { grid-column: 1 / -1; }
  .apricot-booking-form .em-tickets-spaces { max-width: calc(50% - .75rem); }
}
.apricot-booking-form label:not(:has(input[type=checkbox])) { display: block; margin-bottom: .4rem; font-family: var(--wp--preset--font-family--oswald); font-weight: 600; font-size: var(--wp--preset--font-size--small); letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--contrast); }
.apricot-booking-form :is(input[type=text], input[type=tel], input[type=email], select, textarea) {
  width: 100%; box-sizing: border-box; padding: .9rem 1.1rem; border: 2px solid transparent; border-radius: 0;
  background-color: #f6f4ef; color: var(--wp--preset--color--contrast);
  font-family: var(--wp--preset--font-family--merriweather); font-size: var(--wp--preset--font-size--small);
  transition: border-color .15s ease-out;
}
.apricot-booking-form :is(input[type=text], input[type=tel], input[type=email], select, textarea):focus { outline: none; border-color: var(--wp--preset--color--accent-1); }
.apricot-booking-form select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c7a17a' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1rem center; }
.apricot-booking-form textarea { min-height: 7rem; resize: vertical; }
.apricot-booking-form .em-consent-checkbox label { display: block; padding-left: 1.6rem; text-indent: -1.6rem; font-size: var(--wp--preset--font-size--small); }
.apricot-booking-form .em-consent-checkbox input { margin: 0 .6rem 0 0; vertical-align: -2px; accent-color: var(--wp--preset--color--accent-1); }
.apricot-booking-form .em-booking-submit {
  padding: .9em 2em; border: 0; border-radius: 0; cursor: pointer;
  background-color: var(--wp--preset--color--accent-1); color: var(--wp--preset--color--base);
  font-family: var(--wp--preset--font-family--oswald); font-weight: 600; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase;
  transition: background-color .15s ease-out;
}
.apricot-booking-form .em-booking-submit:hover { background-color: var(--wp--preset--color--contrast); }
.apricot-booking-form :is(.em-booking-message, .em-notice) { margin: 0 0 1.25rem; padding: .9rem 1.1rem; background: #f6f4ef; border-left: 3px solid var(--wp--preset--color--accent-1); font-size: var(--wp--preset--font-size--small); }
.apricot-booking-form :is(.em-booking-message-error, .em-notice-error) { border-left-color: #b3261e; }
.apricot-booking-form .apricot-booking-user { grid-column: 1 / -1; padding: .9rem 1.1rem; background: #f6f4ef; }
.apricot-booking-form .apricot-booking-user-label { display: block; margin-bottom: .2rem; font-family: var(--wp--preset--font-family--oswald); font-weight: 600; font-size: var(--wp--preset--font-size--small); letter-spacing: .1em; text-transform: uppercase; }
.apricot-booking-form .apricot-booking-user-email { opacity: .7; }

/* Footer newsletter (CF7 form 287, stored in Flamingo) on the dark photo background; overrides the beige .wpcf7 field style */
.apricot-footer-newsletter .wpcf7 form p { margin: 0 0 .75rem; }
.apricot-footer-newsletter .apricot-nl-row { display: flex; align-items: stretch; }
.apricot-footer-newsletter .apricot-nl-row > .wpcf7-form-control-wrap { flex: 1 1 auto; min-width: 0; }
.apricot-footer-newsletter .wpcf7 :is(.wpcf7-text, .wpcf7-email) {
  width: 100%; margin: 0; padding: .7rem .9rem; border: 1px solid rgba(255, 255, 255, .45); border-radius: 0;
  background: rgba(255, 255, 255, .1); color: var(--wp--preset--color--base);
  font-family: var(--wp--preset--font-family--merriweather); font-size: var(--wp--preset--font-size--small);
}
.apricot-footer-newsletter .wpcf7 .wpcf7-email { border-right: 0; }
.apricot-footer-newsletter .wpcf7 :is(.wpcf7-text, .wpcf7-email)::placeholder { color: rgba(255, 255, 255, .7); font-style: italic; }
.apricot-footer-newsletter .wpcf7 :is(.wpcf7-text, .wpcf7-email):focus { outline: none; border-color: var(--wp--preset--color--accent-1); }
.apricot-footer-newsletter .wpcf7 .wpcf7-submit { flex: 0 0 auto; padding: .7rem 1rem; font-size: .75rem; letter-spacing: .12em; }
.apricot-footer-newsletter .wpcf7 .wpcf7-spinner { display: none; }
.apricot-footer-newsletter .apricot-nl-consent { font-size: .75rem; line-height: 1.5; }
.apricot-footer-newsletter .apricot-nl-consent .wpcf7-list-item { margin: 0; }
.apricot-footer-newsletter .apricot-nl-consent a { text-decoration: underline; }
.apricot-footer-newsletter .apricot-nl-consent input { margin: 0 .4rem 0 0; vertical-align: -2px; accent-color: var(--wp--preset--color--accent-1); }
.apricot-footer-newsletter .wpcf7 .wpcf7-not-valid-tip { color: #f2b8b5; font-size: .75rem; }
.apricot-footer-newsletter .wpcf7 form .wpcf7-response-output { margin: .5rem 0 0; padding: .5rem .75rem; border-width: 1px; font-size: .8rem; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.apricot-footer-newsletter .apricot-nl-name input { width: 100%; box-sizing: border-box; border-right: 1px solid rgba(255, 255, 255, .45); }

/* Blog: one post per row, photo left (stacked on phones) */
.apricot-blog-entry > .wp-block-post-featured-image { flex: 0 0 38%; margin: 0; }
.apricot-blog-entry > .apricot-blog-entry-text { flex: 1 1 auto; min-width: 0; }
.apricot-blog-entry-text > .wp-block-post-title { margin: 0; }
@media (max-width: 781px) {
  .wp-block-group.apricot-blog-entry { flex-direction: column; }
  .apricot-blog-entry > .wp-block-post-featured-image { flex-basis: auto; width: 100%; }
}

/* Homepage hero: dark see-through panel only behind the title, subtitle and buttons */
.wp-block-cover .wp-block-group.apricot-hero-panel {
  box-sizing: border-box; max-width: calc(600px + 6rem); padding: 2.5rem 3rem;
  margin-left: calc((100% - min(1240px, 100%)) / 2) !important; margin-right: auto !important;
  background: rgba(0, 0, 0, .55);
}
@media (max-width: 599px) {
  .wp-block-cover .wp-block-group.apricot-hero-panel { padding: 1.75rem 1.5rem; }
}

/* Footer credit: small HomeOps logo in front of the name */
footer .apricot-credit { display: inline-flex; align-items: center; gap: .35rem; vertical-align: middle; }
footer .apricot-credit img { width: 28px; height: auto; }

/* Checkout: WooCommerce sets free shipping prices ("0 Ft") in uppercase */
.wc-block-components-radio-control__secondary-label em { text-transform: none; font-style: normal; }

/* Header language switcher (TranslatePress, opposite language only): same type as the nav */
header .apricot-lang .trp-shortcode-switcher__wrapper { --font-size: .8rem; }
header .apricot-lang .trp-language-item { padding: 0; min-height: 0; }
header .apricot-lang .trp-language-item-name { font-family: var(--wp--preset--font-family--oswald); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 15px; line-height: 1.75; }
header .apricot-lang .trp-shortcode-switcher__wrapper { display: flex; align-items: center; }
header .apricot-lang .trp-shortcode-overlay { top: 50%; transform: translateY(-50%); }

/* Photo carousels: arrows in the side margin on every page, like the homepage (full-width) one */
.wp-block-group .wp-block-cb-carousel-v2.apricot-photo-carousel .cb-button-prev { left: -34px; right: auto; }
.wp-block-group .wp-block-cb-carousel-v2.apricot-photo-carousel .cb-button-next { right: -34px; left: auto; }

/* Never scroll sideways on phones (e.g. long centred headings on shop pages); clip keeps the sticky header working */
body { overflow-x: clip; }

/* Homepage hero entrance (first visit per session; class set in <head>, never with reduced motion):
   the photo fades in from dark and settles, then the text panel and its lines rise in. ~1.2 s, nothing waits for it. */
@keyframes apricot-hero-photo { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes apricot-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
html.apricot-intro body.home .wp-block-cover.alignfull:first-of-type { background-color: #151412; }
html.apricot-intro body.home .wp-block-cover.alignfull:first-of-type .wp-block-cover__image-background { animation: apricot-hero-photo 1.1s cubic-bezier(.2, .7, .2, 1) both; }
html.apricot-intro body.home .apricot-hero-panel { animation: apricot-rise .7s .2s cubic-bezier(.2, .7, .2, 1) both; }
html.apricot-intro body.home .apricot-hero-panel > * { animation: apricot-rise .6s cubic-bezier(.2, .7, .2, 1) both; }
html.apricot-intro body.home .apricot-hero-panel > :nth-child(1) { animation-delay: .35s; }
html.apricot-intro body.home .apricot-hero-panel > :nth-child(2) { animation-delay: .5s; }
html.apricot-intro body.home .apricot-hero-panel > :nth-child(3) { animation-delay: .65s; }
@media (prefers-reduced-motion: reduce) {
  html.apricot-intro body.home .wp-block-cover__image-background, html.apricot-intro body.home .apricot-hero-panel, html.apricot-intro body.home .apricot-hero-panel > * { animation: none; }
}

/* Click-to-play YouTube preview (functions.php): fills the embed's 16:9 box like the iframe would */
.apricot-yt .wp-block-embed__wrapper { position: relative; }
.apricot-yt .apricot-yt-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
.apricot-yt .apricot-yt-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.apricot-yt .apricot-yt-icon { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); border-radius: 12px; background: rgba(21, 20, 18, .8); transition: background .15s; }
.apricot-yt .apricot-yt-icon::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.apricot-yt .apricot-yt-play:hover .apricot-yt-icon, .apricot-yt .apricot-yt-play:focus-visible .apricot-yt-icon { background: var(--wp--preset--color--accent-1); }
.apricot-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
