/* GARAN for WooCommerce — front end */
.garan-notice, .garan-label-wrap, .garan-cart-labels, .garan-dialog, .garan-pop { box-sizing: border-box; }
.garan-notice *, .garan-dialog *, .garan-pop * { box-sizing: border-box; }
.garan-notice .screen-reader-text, .garan-nested .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;
}

/* Harmonised notice */
.garan-notice { margin: 1.25em 0; max-width: 100%; }
.garan-notice__img { display: inline-block; line-height: 0; max-width: 100%; }
.garan-notice__img img { display: block; max-width: 100%; height: auto; }
.garan-notice__link { display: block; margin-top: .45em; font-size: .875em; text-decoration: underline; }
.garan-notice--compact { display: block; max-width: 100%; }
.garan-notice--compact .garan-notice__details { display: inline-block; max-width: 100%; }
.garan-notice__thumb { display: inline-block; width: 72px; height: 44px; overflow: hidden; border-radius: 4px; border: 1px solid rgba(127, 127, 127, .35); background: #fff; flex: none; margin-left: -.35em; }
.garan-notice__thumb img { display: block; width: 100%; height: auto; }
.garan-notice__label { flex: 1 1 auto; }
.garan-notice--compact .garan-notice__link { margin-top: .5em; }
.garan-notice__summary {
	display: inline-flex; align-items: center; gap: .5em; cursor: pointer; list-style: none;
	padding: .55em .95em; border: 2px solid currentColor; border-radius: 999px; font-weight: 600; font-size: .9375em; line-height: 1.3;
}
.garan-notice__summary::-webkit-details-marker { display: none; }
.garan-notice__summary::after { content: "\25BE"; font-size: .85em; }
.garan-notice__details[open] .garan-notice__summary::after { content: "\25B4"; }
.garan-notice__summary:focus-visible, .garan-nested:focus-visible, .garan-dialog__close:focus-visible, .garan-dialog__more:focus-visible { outline: 3px solid #1a5fb4; outline-offset: 2px; }
.garan-notice__icon {
	display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%;
	background: #003399; color: #ffcc00; font-weight: 700; font-size: .9em;
}
.garan-notice__body { padding-top: .75em; }
.garan-notice-band { padding: 1.25em 16px; text-align: center; border-top: 1px solid rgba(127, 127, 127, .25); }
.garan-notice-band .garan-notice { margin: 0 auto; }
.garan-notice--checkout, .garan-notice--cart { margin: 1em 0; }
.garan-block-extra { max-width: 1200px; margin: 1.5em auto; padding: 0 16px; }

/* Nested GARAN label */
.garan-label-wrap { margin: .5em 0 1em; line-height: 1; }
.garan-label-wrap--loop { margin: .35em 0 .6em; }
.garan-label-wrap--cart, .garan-label-wrap--checkout { margin: .4em 0 0; }
.garan-nested {
	display: inline-flex; align-items: stretch; vertical-align: middle; text-decoration: none !important; color: #1d1d1b !important;
	border: 2px solid #1d1d1b; border-radius: 6px; overflow: hidden; background: #fff; font-family: inherit; line-height: 1.1; cursor: pointer;
	transition: box-shadow .15s ease;
}
.garan-nested:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.garan-nested__mark {
	display: inline-flex; align-items: center; padding: .38em .55em; background: #1d1d1b; color: #fff;
	font-weight: 800; letter-spacing: .06em; font-size: .78em;
}
.garan-nested__period { display: inline-flex; align-items: center; padding: .38em .6em; font-weight: 700; font-size: .9em; white-space: nowrap; }
.garan-nested--official { border: 0; border-radius: 0; background: transparent; padding: 0; overflow: visible; }
.garan-nested--official .garan-nested__official { display: block; height: 32px; width: auto; max-width: 100%; }
.garan-nested--official.garan-nested--loop .garan-nested__official,
.garan-nested--official.garan-nested--cart .garan-nested__official,
.garan-nested--official.garan-nested--checkout .garan-nested__official { height: 24px; }
.garan-nested--official:hover { box-shadow: none; opacity: .85; }
.garan-nested--thumb { border-width: 1px; border-color: rgba(0, 0, 0, .25); padding: 3px; gap: 6px; align-items: center; }
.garan-nested--thumb .garan-nested__thumb { display: block; width: 44px; height: auto; }
.garan-nested--loop .garan-nested__mark, .garan-nested--cart .garan-nested__mark, .garan-nested--checkout .garan-nested__mark { font-size: .7em; }
.garan-nested--loop .garan-nested__period, .garan-nested--cart .garan-nested__period, .garan-nested--checkout .garan-nested__period { font-size: .8em; }

.garan-cart-labels { margin: 1em 0; }
.garan-cart-labels__title { font-weight: 600; margin: 0 0 .5em; }
.garan-cart-labels ul { list-style: none; margin: 0; padding: 0; }
.garan-cart-labels li { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; margin: 0 0 .4em; }

/* Full label */
.garan-dialog { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); overflow: visible; }
.garan-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.garan-dialog--fallback { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; background: rgba(0, 0, 0, .55); max-width: none; max-height: none; }
.garan-dialog--fallback[hidden] { display: none; }
.garan-dialog__box { position: relative; background: #fff; color: #1d1d1b; border-radius: 10px; padding: 44px 20px 16px; width: min(380px, calc(100vw - 32px)); box-shadow: 0 10px 40px rgba(0, 0, 0, .3); text-align: center; }
.garan-dialog__img { display: block; width: 100%; height: auto; margin: 0 auto; }
.garan-dialog__more { display: inline-block; margin-top: 12px; font-size: 14px; color: #1a5fb4; text-decoration: underline; }
.garan-dialog__close {
	position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; border: 0; border-radius: 50%;
	background: transparent; color: #1d1d1b; font-size: 26px; line-height: 1; cursor: pointer; padding: 0;
}
.garan-dialog__close:hover { background: #f0f0f0; }
.garan-pop { position: absolute; z-index: 100000; width: 250px; padding: 8px; background: #fff; border-radius: 8px; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); pointer-events: auto; }
.garan-pop[hidden] { display: none; }
.garan-pop img { display: block; width: 100%; height: auto; }

@media (prefers-reduced-motion: reduce) { .garan-nested { transition: none; } }
.garan-notice--compact .garan-notice__summary { border-radius: 10px; padding: .4em .9em .4em .75em; border-width: 1.5px; }
.garan-notice-band .garan-notice--compact { text-align: center; }
