.customer-stories-page .customer-stories-heading { gap: 24px; align-items: center; }
.customer-stories-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.customer-story-invitation { box-sizing: border-box; grid-column: span 2; display: flex; min-width: 0; min-height: 350px; flex-direction: column; align-items: flex-start; gap: 26px; padding: clamp(24px, 3vw, 42px); background: #eae4da; color: #332c27; }
.customer-story-invitation__eyebrow { color: #766b60; font-size: 11px; font-weight: 500; letter-spacing: .14em; }
.customer-story-invitation__content { width: 100%; max-width: 440px; margin-top: auto; }
.customer-story-invitation__content h2 { margin: 0 0 14px; color: inherit; font-size: clamp(26px, 2.8vw, 40px); font-weight: 500; line-height: 1.2; }
.customer-story-invitation__content p { margin: 0; color: #655a50; font-size: 15px; line-height: 1.6; }
.customer-story-invitation__action { margin-top: 3px; }
.customer-story-card { min-width: 0; }
.customer-story-card__link { display: block; min-width: 0; color: inherit; text-decoration: none; }
.customer-story-card__image { overflow: hidden; aspect-ratio: 4 / 5; background: #f1eee9; }
.customer-story-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.customer-story-card__link:hover .customer-story-card__image img { transform: scale(1.025); }
.customer-story-card__copy { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0 0; }
.customer-story-card__copy h2 { min-width: 0; margin: 0; font-size: 16px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.customer-story-card__copy h2 a { color: inherit; text-decoration: none; }
.customer-story-card__copy h2 a:hover { color: #67543f; }
.customer-story-card__footer { display: flex; flex: 0 0 auto; align-items: center; }
.customer-story-like { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: flex-end; gap: 7px; padding: 5px 0 5px 6px; border: 0; color: #706b63; background: transparent; font: inherit; font-size: 12px; line-height: 1; cursor: pointer; transition: color .18s ease; }
.customer-story-like svg { width: 16px; height: 16px; stroke-width: 1.5; }
.customer-story-like:hover { color: #4e463e; }
.customer-story-like.is-liked { color: #8a5142; }
.customer-story-like.is-liked svg { fill: currentColor; }
.customer-story-like:focus-visible { outline: 2px solid #76624f; outline-offset: 3px; }
.customer-story-like:disabled { cursor: wait; opacity: .65; }
.customer-story-like-status:empty { display: none; }
.customer-story-like-status:not(:empty) { display: block; padding: 2px 0 0; color: #8a5142; font-size: 11px; line-height: 1.4; }
.customer-story-editorial { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(30px, 5vw, 88px); align-items: start; margin: 12px 0 50px; }
.customer-story-slider { min-width: 0; }
.customer-story-slider__viewport { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: #f3f0eb; }
.customer-story-slider__viewport:focus-visible { outline: 2px solid #76624f; outline-offset: 3px; }
.customer-story-slide { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.customer-story-slide[hidden] { display: none; }
.customer-story-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.customer-story-slider__controls { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.customer-story-slider__arrow { position: absolute; top: 50%; display: grid; width: 38px; height: 38px; place-items: center; padding: 0; transform: translateY(-50%); border: 0; color: #403b35; background: rgba(255,253,250,.9); backdrop-filter: blur(8px); cursor: pointer; pointer-events: auto; transition: background .2s ease; }
.customer-story-slider__arrow[data-story-slider-prev] { left: 16px; }
.customer-story-slider__arrow[data-story-slider-next] { right: 16px; }
.customer-story-slider__arrow svg { width: 17px; height: 17px; stroke-width: 1.3; }
.customer-story-slider__arrow:hover { background: rgba(255,253,250,1); }
.customer-story-slider__arrow:focus-visible { outline: 2px solid #76624f; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
	.customer-story-slider__arrow { opacity: 0; pointer-events: none; transition: opacity .2s ease, background .2s ease; }
	.customer-story-slider__viewport:hover .customer-story-slider__arrow,
	.customer-story-slider__viewport:focus-within .customer-story-slider__arrow { opacity: 1; pointer-events: auto; }
}
.customer-story-slider__dots { position: absolute; bottom: 12px; left: 50%; display: flex; align-items: center; justify-content: center; gap: 0; transform: translateX(-50%); pointer-events: auto; }
.customer-story-slider__dot { display: grid; width: 15px; height: 28px; place-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
.customer-story-slider__dot::before { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: rgba(64,59,53,.48); transition: background .18s ease, transform .18s ease; }
.customer-story-slider__dot.is-active::before { background: #403b35; transform: scale(1.3); }
.customer-story-slider__dot:focus-visible { outline: 2px solid #76624f; outline-offset: -2px; }
.customer-story-detail { display: flex; min-width: 0; flex-direction: column; align-self: stretch; justify-content: flex-start; align-items: flex-start; }
.customer-story-detail h1 { margin: 0 0 28px; font-size: clamp(28px, 3vw, 44px); font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }
.customer-story-detail__text { max-width: 600px; margin: 0; color: #504a42; font-size: 17px; line-height: 1.8; white-space: normal; overflow-wrap: anywhere; }
.customer-story-detail__footer { display: flex; width: 100%; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 22px; margin-top: 26px; }
.customer-story-detail__footer .customer-story-like-status:not(:empty) { flex-basis: 100%; }
.customer-story-detail__social { margin: 0; }
.customer-story-detail__social a { color: #67543f; font-size: 13px; }
.customer-story-detail__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin: 16px 0 52px; }
.customer-story-detail__bottom a { color: #67543f; font-size: 13px; text-decoration: none; }
.customer-story-detail__bottom a:hover { text-decoration: underline; }
.customer-stories-pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 38px 0; }
.customer-stories-pagination a, .customer-stories-pagination span { min-width: 36px; padding: 8px 10px; color: #504a42; text-align: center; text-decoration: none; }
.customer-stories-pagination [aria-current="page"] { font-weight: 700; }

.customer-story-submit-dialog { position: fixed; inset: 0; box-sizing: border-box; width: min(880px, calc(100vw - 32px)); max-width: 880px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); margin: auto; padding: 0; overflow: hidden; border: 0; color: var(--ink); background: var(--paper); box-shadow: 0 30px 80px rgba(35,31,28,.2); }
.customer-story-submit-dialog::backdrop { background: rgba(35,31,28,.48); backdrop-filter: blur(2px); }
.customer-story-submit-dialog__panel { display: flex; min-height: 0; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); flex-direction: column; }
.customer-story-submit-dialog__header { position: relative; display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 62px 18px 26px; border-bottom: 1px solid var(--line); }
.customer-story-submit-dialog__header h2 { margin: 0; font-size: 22px; font-weight: 500; }
.customer-story-submit-dialog__header .close-btn { position: absolute; top: 8px; right: 10px; width: 32px; height: 32px; font-size: 26px; }
.customer-story-submit-dialog__body { min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 24px 26px; }
.customer-story-submit-dialog__body .profile-ticket-form-card { box-sizing: border-box; width: 100%; max-width: 720px; margin: 0 auto; padding: 0; border: 0; background: transparent; }
.customer-story-submit-dialog__body .customer-story-confirmation { box-sizing: border-box; width: 100%; max-width: 720px; margin: 0 auto; }
.customer-story-lightbox { position: fixed; inset: 0; width: 96vw; max-width: min(96vw, 1400px); height: 96dvh; max-height: 96dvh; padding: 42px 58px 34px; border: 0; color: #fff; background: rgba(24,22,19,.97); }
.customer-story-lightbox::backdrop { background: rgba(0,0,0,.86); }
.customer-story-lightbox img { width: 100%; height: 100%; object-fit: contain; touch-action: pan-y; }
.customer-story-lightbox button { position: absolute; border: 0; color: #fff; background: transparent; font-size: 34px; cursor: pointer; }
.customer-story-lightbox [data-story-lightbox-close] { top: 8px; right: 14px; font-size: 38px; }
.customer-story-lightbox [data-story-lightbox-prev] { top: 50%; left: 8px; }
.customer-story-lightbox [data-story-lightbox-next] { top: 50%; right: 8px; }
.customer-story-lightbox p { position: absolute; bottom: 4px; left: 50%; margin: 0; color: #ddd; transform: translateX(-50%); }

/* Keep native dialog semantics while matching the site's 0.3s modal fade. */
.customer-story-submit-dialog,
.customer-story-lightbox {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .3s ease, transform .3s cubic-bezier(.22, 1, .36, 1), display .3s allow-discrete, overlay .3s allow-discrete;
}
.customer-story-submit-dialog[open],
.customer-story-lightbox[open] {
	opacity: 1;
	transform: translateY(0);
}
.customer-story-submit-dialog::backdrop,
.customer-story-lightbox::backdrop {
	opacity: 0;
	transition: opacity .3s ease, display .3s allow-discrete, overlay .3s allow-discrete;
}
.customer-story-submit-dialog[open]::backdrop,
.customer-story-lightbox[open]::backdrop { opacity: 1; }

@starting-style {
	.customer-story-submit-dialog[open],
	.customer-story-lightbox[open] {
		opacity: 0;
		transform: translateY(12px);
	}
	.customer-story-submit-dialog[open]::backdrop,
	.customer-story-lightbox[open]::backdrop { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.customer-story-submit-dialog,
	.customer-story-lightbox,
	.customer-story-submit-dialog::backdrop,
	.customer-story-lightbox::backdrop { transition: none; }
}

.customer-story-upload { margin: 0; }
.customer-story-upload__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 8px 0 0; padding: 0; list-style: none; }
.customer-story-upload__item { display: grid; min-width: 0; align-content: start; gap: 7px; }
.customer-story-upload__preview { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); cursor: grab; }
.customer-story-upload__preview:active { cursor: grabbing; }
.customer-story-upload__preview img { width: 100%; height: 100%; object-fit: contain; }
.customer-story-upload__item > .profile-ticket-field__title { color: var(--ink); font-size: 11px; }
.customer-story-upload__remove { position: absolute; z-index: 1; top: 6px; right: 6px; width: 30px; height: 30px; background: var(--paper); }
.customer-story-upload__ghost { opacity: .35; }
.customer-story-upload__chosen { cursor: grabbing; }
.customer-story-upload__item .form-status { margin: 0; }
.customer-story-confirmation { max-width: 720px; padding: 26px; border: 1px solid var(--line); background: var(--paper); }
.customer-story-confirmation h2 { margin: 0 0 10px; font-size: 24px; font-weight: 500; }
.customer-story-confirmation p { margin-bottom: 20px; }

.customer-story-mine-list { display: grid; gap: 18px; }
.customer-story-mine { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; padding-bottom: 20px; border-bottom: 0; }
.customer-story-mine__cover { aspect-ratio: 4 / 5; background: #f2f0ec; }
.customer-story-mine__cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.customer-story-mine__meta { display: flex; align-items: center; gap: 12px; color: #827b72; font-size: 13px; }
.customer-story-status { display: inline-block; padding: 4px 8px; background: #f0eee9; font-size: 12px; }
.customer-story-status--published { background: #e7efe4; }
.customer-story-status--rejected { background: #f7e9e6; }
.customer-story-status--pending { background: #f5f0df; }
.customer-story-status--unpublished { background: #ece9e4; }
.customer-story-mine h2 { margin: 10px 0; font-size: 21px; font-weight: 500; }
.customer-story-mine__copy > p { color: #706b63; line-height: 1.6; }
.customer-story-mine__comment { color: #8a4a40; }
.customer-story-mine__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.customer-story-mine__public-link { color: #67543f; }

.customer-story-admin__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0 20px; }
.dashboard.control .customer-story-admin__list { display: grid; gap: 0; }
.dashboard.control .orders_list.customer-story-admin-row { display: grid; grid-template-columns: 28px 58px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-width: 0; padding: 12px; border-radius: 8px; }
.customer-story-admin-row__handle, .customer-story-admin-row__handle-placeholder { grid-column: 1; grid-row: 1; width: 28px; }
.customer-story-admin-row__handle { display: grid; height: 36px; place-items: center; padding: 0; border: 0; color: #667085; background: transparent; cursor: grab; font-size: 18px; line-height: 1; touch-action: none; user-select: none; }
.customer-story-admin-row__handle:active { cursor: grabbing; }
.customer-story-admin-row__handle:focus-visible { outline: 2px solid var(--control-accent); outline-offset: 2px; }
.customer-story-admin-row__cover { display: grid; width: 58px; height: 72px; place-items: center; overflow: hidden; border-radius: 6px; background: #f1f5f9; }
.dashboard.control .customer-story-admin-row__cover img, .dashboard.control .customer-story-admin-row__cover .customer-story-admin-list__empty { display: block; width: 58px; height: 72px; object-fit: contain; background: #f1f5f9; }
.customer-story-admin-row__copy { min-width: 0; }
.customer-story-admin-row__copy > .editlink { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.dashboard.control .customer-story-admin-row__copy > p { display: -webkit-box; margin: 4px 0 0; overflow: hidden; color: #667085; font-size: 13px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.customer-story-admin-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 7px; color: #667085; font-size: 12px; line-height: 1.35; }
.dashboard.control .customer-story-admin-row__meta .status { margin: 0; }
.customer-story-admin-row__open { justify-self: end; white-space: nowrap; }
.customer-story-admin-row--ghost { opacity: .5; }
.customer-story-admin__sort-status { grid-column: 1 / -1; min-height: 18px; color: #667085; font-size: 12px; }
.customer-story-admin__sort-status.is-success { color: #3b7650; }
.customer-story-admin__sort-status.is-error { color: #a2382c; }
.customer-story-admin-row { padding: 14px 0; border-bottom: 1px solid #e8e5df; }
.customer-story-admin-row img, .customer-story-admin-list__empty { display: block; width: 90px; height: 110px; object-fit: contain; background: #f1eee9; }
.customer-story-admin-row p { margin: 6px 0; }
.dashboard.control .customer-story-admin__form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr); gap: 18px; max-width: none; }
.dashboard.control .customer-story-admin__fields, .dashboard.control .customer-story-admin__photos { min-width: 0; padding: 20px; border: 1px solid var(--control-border); border-radius: 10px; background: var(--control-surface); }
.customer-story-admin__fields { display: grid; align-content: start; gap: 16px; }
.dashboard.control .customer-story-admin__fields > label { display: grid; gap: 7px; margin: 0; color: #475467; font-size: 13px; }
.dashboard.control .customer-story-admin__fields input:not([type="checkbox"]), .dashboard.control .customer-story-admin__fields textarea { display: block; box-sizing: border-box; width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid var(--control-border); border-radius: 6px; background: #fff; color: #101828; font: inherit; font-size: 14px; }
.dashboard.control .customer-story-admin__homepage-setting { display: grid; gap: 6px; }
.dashboard.control .customer-story-admin__homepage-setting > label { display: inline-flex; align-items: center; gap: 10px; width: fit-content; margin: 0; color: #344054; font-size: 13px; cursor: pointer; }
.dashboard.control .customer-story-admin__homepage-setting input[type="checkbox"] { display: block; flex: 0 0 16px; width: 16px; height: 16px; margin: 0; padding: 0; accent-color: var(--control-accent); }
.dashboard.control .customer-story-admin__homepage-setting > small { display: block; color: #667085; font-size: 12px; line-height: 1.45; }
.customer-story-admin__fields textarea { resize: vertical; line-height: 1.5; }
.customer-story-admin__photos { align-self: start; margin: 0; }
.customer-story-admin__photos-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.customer-story-admin__photos-heading h2 { margin: 0; font-size: 18px; }
.customer-story-admin__photos p { margin: 10px 0 0; color: #667085; font-size: 12px; line-height: 1.5; }
.customer-story-admin__photos input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.customer-story-admin-photo-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.customer-story-admin-photo { min-width: 0; }
.customer-story-admin-photo__preview { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: #f1f5f9; cursor: grab; }
.customer-story-admin-photo__preview:active { cursor: grabbing; }
.customer-story-admin-photo__preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.customer-story-admin-photo > span { display: block; margin: 6px 0 0; color: #667085; font-size: 12px; }
.customer-story-admin-photo__remove { position: absolute; top: 6px; right: 6px; display: grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 1px solid var(--control-border); border-radius: 6px; color: #344054; background: #fff; cursor: pointer; font-size: 20px; line-height: 1; }
.customer-story-admin-photo__remove:hover { color: #a2382c; }
.customer-story-admin-photo--ghost { opacity: .4; }
.customer-story-admin__actions { grid-column: 1 / -1; display: flex; gap: 10px; }
.customer-story-admin__publication-row { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.dashboard.control .customer-story-admin__publication-row .status { display: inline-flex; box-sizing: border-box; min-height: 30px; align-items: center; margin: 0; }
.dashboard.control .customer-story-admin__publication-row .btn { min-height: 30px; padding: 4px 8px; }
.customer-story-admin__meta { color: #667085; font-size: 13px; }
.customer-story-admin__list .status { display: inline-block; margin-top: 5px; padding: 4px 7px; }
.customer-story-admin__notice { min-height: 24px; margin: 8px 0; color: #58724d; }
.customer-story-admin__notice.is-error { color: #a2382c; }
.dashboard.control .customer-story-admin__notice:empty { display: none; }
@media (min-width: 768px) {
	.dashboard.control .dashmain:has(> section.customer-story-admin[data-customer-story-admin]) { padding-top: 18px; }
}
.customer-story-admin__withdrawal-note { margin: 8px 0 0; color: #8d4f00; }

@media (max-width: 1100px) {
	.customer-stories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
	.dashboard.control .customer-story-admin__form { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
	.customer-stories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
	.customer-story-editorial { grid-template-columns: minmax(0, 1fr); gap: 30px; }
	.customer-story-slider { width: 100%; max-width: 620px; }
	.customer-story-detail { align-self: auto; }
}

@media (max-width: 720px) {
	.customer-stories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
	.customer-story-card__copy h2 { font-size: 15px; }
	.customer-story-editorial { margin-top: 8px; margin-bottom: 32px; gap: 26px; }
	.customer-story-detail h1 { margin-bottom: 20px; font-size: 30px; }
	.customer-story-detail__text { font-size: 15px; }
	.customer-story-slider__arrow[data-story-slider-prev] { left: 10px; }
	.customer-story-slider__arrow[data-story-slider-next] { right: 10px; }
	.customer-story-slider__dots { bottom: 8px; }
	.customer-story-submit-dialog { width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; border: 0; }
	.customer-story-submit-dialog__panel { max-height: 100vh; max-height: 100dvh; }
	.customer-story-submit-dialog__header { padding: 24px 54px 18px 18px; }
	.customer-story-submit-dialog__header h2 { font-size: 19px; }
	.customer-story-submit-dialog__body { padding: 18px 18px 24px; }
	.customer-story-lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 40px 34px 34px; }
	.customer-story-upload__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.customer-story-mine { grid-template-columns: 96px minmax(0, 1fr); gap: 13px; }
	.customer-story-mine__meta { align-items: flex-start; flex-direction: column; gap: 5px; }
	.customer-story-mine h2 { font-size: 18px; }
	.customer-story-mine__copy > p { font-size: 14px; }
	.dashboard.control .orders_list.customer-story-admin-row { grid-template-columns: 26px 52px minmax(0, 1fr); gap: 10px; padding: 10px; }
	.dashboard.control .customer-story-admin-row__handle, .dashboard.control .customer-story-admin-row__handle-placeholder { width: 26px; }
	.dashboard.control .customer-story-admin-row__cover { width: 52px; height: 68px; }
	.dashboard.control .customer-story-admin-row__cover img, .dashboard.control .customer-story-admin-row__cover .customer-story-admin-list__empty { width: 52px; height: 68px; }
	.dashboard.control .customer-story-admin-row__open { grid-column: 3; justify-self: start; margin-top: 8px; }
	.customer-story-admin-row__meta { gap: 5px 8px; }
	.dashboard.control .customer-story-admin__fields, .dashboard.control .customer-story-admin__photos { padding: 15px; }
	.customer-story-admin-photo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 460px) {
	.customer-stories-grid { gap: 12px; }
	.customer-story-invitation { min-height: 290px; gap: 18px; padding: 24px 20px; }
	.customer-story-invitation__content h2 { font-size: 27px; }
	.customer-story-invitation__content p { font-size: 14px; }
	.customer-story-card__copy { gap: 5px; padding-top: 5px; }
	.customer-story-card__copy h2 { font-size: 13px; }
	.customer-story-like { padding-left: 4px; }
}
