/* flower_checkout: one-page checkout (flower_checkout.tpl), measures of mockup-4.html.
 * Colour: var(--main-theme-color) from the site skin (kusadasicicekcilik #127C35, kusadasicicek #822c9c).
 * Phone first: one column, summary on top, the submit button at the end of section 4 (as on desktop, user 5 Nov); >= 992px two columns.
 * Font sizes about 2px larger than the mockup (user, 8 Nov: easier to read for older customers); the smallest is 13.5px. */

/* The site's top part (menu, search, drawer, strip) is not shown here; .fc-top replaces it. <head> and footer stay. */
header.cu-ust, .cu-golge, aside.cu-cekmece, section.cu-serit { display: none !important; }

.fc-page {
	--fc-color: var(--main-theme-color, #127C35);
	--fc-light: #f3f8f4;
	--fc-border: #e3e6ea;
	--fc-input: #d5d9de;
	--fc-text: #1f2328;
	--fc-muted: #6b7280;
	--fc-error: #c62828;
	background: #f4f5f7;
	color: var(--fc-text);
	font-size: 16px;
	line-height: 1.4;
}

@supports (background: color-mix(in srgb, red 10%, #fff)) {
	.fc-page { --fc-light: color-mix(in srgb, var(--fc-color) 9%, #fff); }
}

.fc-page *, .fc-page *::before, .fc-page *::after { box-sizing: border-box; }

/* ---------- top ---------- */
.fc-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	background: #fff;
	border-bottom: 1px solid var(--fc-border);
	padding: 10px 14px;
	font-size: 15px;
	color: #57606a;
}

.fc-top a { color: inherit; text-decoration: none; }
.fc-top__back { flex: 1 1 0; white-space: nowrap; }
.fc-top__logo { flex: 0 1 auto; text-align: center; font-weight: 800; color: var(--fc-color) !important; min-width: 0; }
.fc-top__logo img { display: block; max-height: 36px; max-width: 150px; width: auto; height: auto; margin: 0 auto; }
.fc-top__secure { flex: 1 1 0; text-align: right; white-space: nowrap; }

/* ---------- layout ---------- */
.fc { margin: 0 auto; max-width: 1040px; }
.fc-grid { display: block; }
.fc-col { min-width: 0; }

.fc-section, .fc-section-like {
	background: #fff;
	border: 1px solid var(--fc-border);
	border-radius: 12px;
	padding: 14px;
	margin: 10px 12px;
}

.fc-section__head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.fc-section__no {
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--fc-color);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.fc-section__title { margin: 0; font-size: 17px; font-weight: 700; color: var(--fc-text); line-height: 1.3; }
.fc-section__sub { margin: 0; font-size: 14px; color: var(--fc-muted); }

/* ---------- fields ---------- */
.fc-row { display: block; }
.fc-field { min-width: 0; }
/* First and last name (R32): two columns on every width, phones too. The two fields' label, input and error line sit in the
   row's own grid (rows 1-3), so the inputs line up even when one label wraps; (0,2,0) beats the desktop .fc-row gap. */
.fc-row.fc-row--names { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 10px; }
.fc-row--names > .fc-field { display: contents; }
.fc-row--names > .fc-field:first-child > * { grid-column: 1; }
.fc-row--names > .fc-field:last-child > * { grid-column: 2; }
.fc-row--names .fc-label { grid-row: 1; align-self: end; }
.fc-row--names .fc-input { grid-row: 2; }
.fc-row--names .fc-error { grid-row: 3; }
.fc-label { display: block; font-size: 16px; color: #1f2328; margin: 12px 0 5px; font-weight: 600; }
.fc-optional { color: #9aa0a6; font-weight: 400; }
.fc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.fc-input {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 42px;
	border: 1px solid var(--fc-input);
	border-radius: 8px;
	background: #fff;
	padding: 10px 12px;
	font: inherit;
	font-size: 18px; /* no zoom on iPhone */
	color: var(--fc-text);
	-webkit-appearance: none;
	appearance: none;
}
.fc-input:focus { outline: none; border-color: var(--fc-color); box-shadow: 0 0 0 3px var(--fc-light); }
.fc-input.is-invalid { border-color: var(--fc-error); }
.fc-select {
	background-image: linear-gradient(45deg, transparent 50%, #57606a 50%), linear-gradient(135deg, #57606a 50%, transparent 50%);
	background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
	background-size: 5px 5px;
	background-repeat: no-repeat;
	padding-right: 32px;
}
.fc-textarea { min-height: 64px; resize: vertical; }
.fc-textarea--card { min-height: 88px; margin-top: 10px; }

.fc-help { margin: 5px 0 0; font-size: 13.5px; color: var(--fc-muted); }
.fc-error { margin: 5px 0 0; font-size: 14px; color: var(--fc-error); }
.fc-error[hidden] { display: none; }
.fc-card-foot { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--fc-muted); margin-top: 6px; }

.fc-check { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; margin: 12px 0 0; color: #374151; line-height: 1.4; font-weight: 400; cursor: pointer; }
.fc-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--fc-color); }
.fc-check a { color: var(--fc-color); text-decoration: underline; }

.fc-company { border-left: 3px solid var(--fc-light); margin: 8px 0 0 8px; padding-left: 12px; }
.fc-company[hidden] { display: none; }

/* ---------- payment ---------- */
.fc-method { display: block; border: 1.5px solid var(--fc-input); border-radius: 10px; padding: 11px 12px; margin: 8px 0 0; background: #fff; cursor: pointer; font-weight: 400; }
.fc-method.is-selected { border-color: var(--fc-color); background: var(--fc-light); }
.fc-method__head { display: flex; gap: 10px; align-items: center; }
.fc-method__head input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--fc-color); }
.fc-method__title { font-size: 16px; font-weight: 700; color: var(--fc-text); }
.fc-method__info { display: block; margin: 8px 0 0 28px; font-size: 14px; color: #374151; line-height: 1.45; overflow-wrap: anywhere; }
.fc-method__info[hidden] { display: none; }
/* R31: the chosen method cannot take the session's currency: the warning and the currency buttons, inside its box */
.fc-method__currency { display: block; margin: 10px 0 0 28px; padding: 9px 10px; border-radius: 8px; background: #fff4f4; border: 1px solid #f1c4c4; color: var(--fc-error); font-size: 15px; line-height: 1.45; cursor: default; }
.fc-method__currency-text { display: block; font-weight: 600; }
.fc-method__currency-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fc-currency { border: 1.5px solid var(--fc-color); background: #fff; color: var(--fc-color); border-radius: 8px; padding: 7px 12px; font-size: 15px; font-weight: 700; cursor: pointer; min-height: 38px; }
.fc-currency:hover, .fc-currency:focus { background: var(--fc-light); }

.fc-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	border: 0;
	border-radius: 10px;
	background: var(--fc-color);
	color: #fff;
	font: inherit;
	font-size: 17px;
	font-weight: 700;
	padding: 13px 16px;
	cursor: pointer;
	white-space: nowrap;
}
.fc-submit::after { content: "\203A"; margin-left: 8px; font-size: 20px; line-height: 1; }
.fc-submit:disabled { opacity: .7; cursor: wait; }
.fc-submit--side { display: flex; margin-top: 14px; }

.fc-whatsapp { text-align: center; font-size: 14px; color: var(--fc-muted); margin: 12px 0 0; }
.fc-whatsapp a { color: #1f8f4e; font-weight: 700; }

.fc-alert { margin: 10px 12px; padding: 10px 12px; border-radius: 8px; background: #fdecea; color: var(--fc-error); font-size: 15px; }
.fc-alert[hidden] { display: none; }

.fc-payment-area { margin: 10px 12px; }

/* ---------- summary (also styles flower_checkout_summary.tpl) ---------- */
.fc-summary { display: none; }
.fc-summary-mobile { background: #fff; border-bottom: 1px solid var(--fc-border); }
.fc-summary-mobile__head { list-style: none; display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; font-size: 15px; }
.fc-summary-mobile__head::-webkit-details-marker { display: none; }
.fc-summary-mobile__title { flex: 1; min-width: 0; }
.fc-summary-mobile__when { display: block; font-size: 14px; color: #374151; margin-top: 2px; }
.fc-summary-mobile__arrow { color: var(--fc-color); font-size: 14px; }
.fc-summary-mobile[open] .fc-summary-mobile__arrow { transform: rotate(180deg); }
.fc-summary-mobile .fc-summary-body { padding: 4px 14px 14px; }

.fc-items { list-style: none; margin: 0; padding: 0; }
.fc-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 15px; }
.fc-item + .fc-item { border-top: 1px solid var(--fc-border); }
.fc-item__img { flex: none; width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.fc-item__body { flex: 1; min-width: 0; }
.fc-item__name { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.fc-item__qty { font-weight: 400; color: var(--fc-muted); }
.fc-item__when { margin: 3px 0 0; font-size: 14px; color: #374151; }
.fc-item__price { flex: none; font-weight: 700; white-space: nowrap; }
.fc-change { display: block; max-width: 100%; border: 0; background: none; padding: 0; margin: 4px 0 0; color: var(--fc-color); font-size: 14px; font-weight: 700; line-height: 1.3; text-align: left; text-decoration: underline; white-space: normal; overflow-wrap: anywhere; cursor: pointer; }

.fc-totals { margin: 10px 0 0; }
.fc-totals__row { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 15px; color: #374151; }
.fc-totals__row dt, .fc-totals__row dd { margin: 0; font-weight: 400; }
.fc-totals__row--total { font-weight: 700; font-size: 17px; color: #111; border-top: 1px solid var(--fc-border); padding-top: 8px; margin-top: 10px; }
.fc-totals__row--total dt, .fc-totals__row--total dd { font-weight: 700; }

/* ---------- terms window and delivery time sheet ---------- */
.fc-modal, .fc-sheet { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.fc-modal[hidden], .fc-sheet[hidden] { display: none; }
.fc-modal__box, .fc-sheet__box { position: relative; background: #fff; border-radius: 12px; width: 100%; max-width: 720px; max-height: 85vh; overflow-y: auto; padding: 20px; }
.fc-modal__close, .fc-sheet__close { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 28px; line-height: 1; color: #57606a; cursor: pointer; }
.fc-modal__body { font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.fc-button { border: 0; border-radius: 10px; background: var(--fc-color); color: #fff; font-weight: 700; padding: 12px 16px; width: 100%; cursor: pointer; }
body.fc-modal-open { overflow: hidden; }

/* the sheet (mockup-2.html): title, product, the product page's picker (.ct, cicek-tema.css), Save */
.fc-sheet { --fc-color: var(--main-theme-color, #127C35); --fc-light: #f3f8f4; --fc-input: #d5d9de; --fc-muted: #6b7280; --fc-text: #1f2328; color: #1f2328; font-size: 16px; line-height: 1.4; }
.fc-sheet *, .fc-sheet *::before, .fc-sheet *::after { box-sizing: border-box; }
.fc-sheet__box { max-width: 480px; padding: 16px 16px 18px; }
.fc-sheet__title { margin: 0 30px 0 0; font-size: 17px; font-weight: 700; line-height: 1.3; }
.fc-sheet__alert { margin: 10px 0 0; padding: 9px 11px; border-radius: 8px; background: #fdecea; color: #c62828; font-size: 15px; }
.fc-sheet__alert[hidden] { display: none; }
.fc-sheet__product { margin: 2px 0 0; font-size: 14px; color: #374151; overflow-wrap: anywhere; }
.fc-sheet__label { margin: 14px 0 6px; font-size: 13.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fc-color); line-height: 1.3; }
.fc-sheet .ct-takvim { position: static; width: auto; margin: 10px 0 0; box-shadow: none; }
.fc-sheet .ct-not { text-align: center; }
.fc-sheet__save { margin-top: 14px; font-size: 17px; }
.fc-sheet__save:disabled { opacity: .6; cursor: default; }

/* ---------- delivery zone search: .fc-combo over the hidden select (flower-checkout.js) ---------- */
.fc-combo { position: relative; }
.fc-combo[hidden] { display: none; }
.fc-input.fc-combo__native { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0; pointer-events: none; }
.fc-combo__input {
	background-image: linear-gradient(45deg, transparent 50%, #57606a 50%), linear-gradient(135deg, #57606a 50%, transparent 50%);
	background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
	background-size: 5px 5px;
	background-repeat: no-repeat;
	padding-right: 64px; /* the arrow and the clear button */
	text-overflow: ellipsis;
}
.fc-combo.is-open .fc-combo__input { border-color: var(--fc-color); }
/* phone: in the page flow, scrolls inside itself */
.fc-combo__list {
	list-style: none;
	margin: 4px 0 0;
	padding: 4px 0;
	background: #fff;
	border: 1px solid var(--fc-input);
	border-radius: 8px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
	max-height: min(50vh, 300px);
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scroll-margin-bottom: 16px;
}
.fc-combo__list[hidden] { display: none; }
.fc-combo__option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 16px; cursor: pointer; }
.fc-combo__option.is-active { background: var(--fc-light); }
.fc-combo__option[aria-selected="true"] .fc-combo__name { color: var(--fc-color); }
.fc-combo__name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.fc-combo__match { font-weight: 700; }
/* the clear button: right end of the box, left of the arrow */
.fc-combo__clear { position: absolute; top: 5px; right: 30px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: #57606a; font-size: 22px; line-height: 1; cursor: pointer; }
.fc-combo__clear:hover, .fc-combo__clear:focus { background: #eef0f2; outline: none; }
.fc-combo__clear[hidden] { display: none; }
/* the chosen zone's service fee under the box: quiet, like .fc-card-foot */
.fc-zone-fee { margin: 5px 0 0; font-size: 14px; color: var(--fc-muted); }
.fc-zone-fee[hidden] { display: none; }
/* map pin (rows and the sheet's search box) */
.fc-zone-pin {
	flex: none;
	display: inline-block;
	width: 16px;
	height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* the zone sheet (phones): title, search box with pin and clear, hint, the list scrolling inside the sheet. On an
   iPhone with the keyboard open the sheet takes the visual viewport's top and height (flower-checkout.js). */
.fc-zone-sheet__box { display: flex; flex-direction: column; overflow: hidden; }
.fc-zone-sheet__search { position: relative; flex: none; margin-top: 12px; }
.fc-zone-sheet__search .fc-zone-pin { position: absolute; left: 12px; top: 50%; margin-top: -8px; }
.fc-input.fc-zone-sheet__input { padding-left: 38px; padding-right: 44px; }
.fc-zone-sheet__search .fc-combo__clear { top: 50%; right: 6px; margin-top: -16px; }
.fc-zone-sheet__hint { flex: none; margin: 6px 2px 0; font-size: 14px; color: var(--fc-muted); }
.fc-zone-sheet .fc-zone-sheet__list { position: static; flex: 1 1 auto; min-height: 0; max-height: none; margin: 8px -14px 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; overflow-y: auto; scroll-margin-bottom: 0; }
.fc-zone-sheet .fc-combo__option { padding: 12px 14px; border-bottom: 1px solid #eef0f2; }
.fc-combo__fee { flex: none; color: var(--fc-muted); font-size: 15px; white-space: nowrap; }
.fc-combo__empty { padding: 10px 12px; color: var(--fc-muted); font-size: 15px; }
.fc-combo__option--closed { cursor: default; }
.fc-combo__option--closed .fc-combo__name { color: var(--fc-muted); }
.fc-combo__option--closed .fc-combo__fee { font-size: 14px; font-style: italic; }
.fc-combo__option--closed .fc-zone-pin { opacity: .4; }
.fc-combo__empty .fc-zone-notice__links { margin-top: 8px; }

/* a "contact us" / "no delivery" zone, or a search without a zone */
.fc-zone-notice { margin: 8px 0 0; padding: 10px 12px; border-radius: 8px; background: #fff7e6; color: #7a4d00; font-size: 15px; line-height: 1.4; }
.fc-zone-notice[hidden] { display: none; }
.fc-zone-notice__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fc-zone-notice__link { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--fc-input); background: #fff; color: var(--fc-text); font-weight: 600; text-decoration: none; }
.fc-zone-notice__link--wa { border-color: #1f8f4e; color: #1f8f4e; }
.fc-zone-notice__link:hover, .fc-zone-notice__link:focus { text-decoration: none; background: var(--fc-light); }

/* ---------- desktop ---------- */
@media (min-width: 768px) {
	.fc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
}

@media (min-width: 992px) {
	.fc-top { padding: 14px 28px; }
	.fc-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: start; padding: 18px 24px 30px; }
	.fc-section, .fc-section-like { margin: 0 0 14px; }
	.fc-col--side .fc-section, .fc-col--side .fc-section-like { padding: 16px; }
	.fc-summary { display: block; }
	.fc-summary .fc-section__title { margin-bottom: 12px; }
	.fc-summary-mobile { display: none; }
	.fc-alert, .fc-payment-area { margin: 10px 24px; }
	.fc-sheet { align-items: center; }
	/* desktop: the zone list opens over the fields below */
	.fc-combo__list { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; max-height: 320px; scroll-margin-bottom: 0; }
}

/* phone: the sheet opens from the bottom */
@media (max-width: 991px) {
	.fc-sheet { align-items: flex-end; padding: 0; }
	.fc-sheet__box { border-radius: 18px 18px 0 0; max-width: none; max-height: 92vh; padding: 12px 14px calc(18px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 24px rgba(0, 0, 0, .2); }
	.fc-sheet__box::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: #d5d9de; margin: 0 auto 12px; }
	.fc-sheet__close { top: 18px; }
	.fc-zone-sheet .fc-sheet__box { height: calc(100% - 24px); max-height: none; }
}

/* Inline payment (Stripe card form) in section 4, shown after complete (R30); the customer pays with Stripe's own button.
   Stripe's payment-request button (Apple Pay / Google Pay) is never shown here: card only. */
.fc-inline-payment {
	margin: 12px 0 4px;
}

.fc-inline-payment__text {
	margin: 0 0 10px;
	font-weight: 700;
	color: var(--fc-text, #1f2328);
}

.fc-inline-payment #payment-request-button,
.fc-inline-payment .payment-request-available {
	display: none !important;
}

/* While any of our sheets or the terms window is open (body.fc-modal-open, flower-checkout.js), the site's floating buttons
   are hidden: on phones they sat over the zone and delivery sheets (user feedback, 5 Nov) */
body.fc-modal-open #scrollToTop,
body.fc-modal-open a[href*="line.me"][style*="fixed"] {
	display: none !important;
}

/* one button while the card form is shown: the page's own buttons pay through it (flower-checkout.js, user 5 Nov) */
.fc-inline-payment--page-button #button-confirm { display: none !important; }
