.wcpaf-options {
	--wcpaf-primary: #075eae;
	--wcpaf-primary-dark: #064d8e;
	--wcpaf-primary-soft: #eaf4fd;
	--wcpaf-ink: #20262d;
	--wcpaf-muted: #687581;
	--wcpaf-line: #dbe4eb;
	--wcpaf-surface: #fff;
	width: 100%;
	margin: 20px 0;
	padding: 18px;
	/*border: 1px solid var(--wcpaf-line);*/
	border-radius: 14px;
	background: var(--wcpaf-surface);
	color: var(--wcpaf-ink);
	direction: rtl;
}

.wcpaf-options *, .wcpaf-options *::before, .wcpaf-options *::after { box-sizing: border-box; }
.wcpaf-options [hidden] { display: none !important; }
.wcpaf-options button { font-family: inherit; }
.wcpaf-options__intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.wcpaf-options__eyebrow { display: block; margin-bottom: 3px; color: var(--wcpaf-primary); font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.wcpaf-options__intro h3 { margin: 0 0 5px; color: var(--wcpaf-ink); font-size: 18px; font-weight: 900; line-height: 1.6; }
.wcpaf-options__intro p { margin: 0; color: var(--wcpaf-muted); font-size: 12px; line-height: 1.9; }
.wcpaf-options__groups { display: grid; gap: 14px; }

.wcpaf-group { position: relative; min-width: 0; padding: 13px; border: 1px solid var(--wcpaf-line); border-radius: 12px; background: #fff; }
.wcpaf-group.is-open { z-index: 50; border-color: #a7c9e5; }
.wcpaf-group__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.wcpaf-group__heading h4 { margin: 0 0 2px; color: var(--wcpaf-ink); font-size: 14px; font-weight: 900; }
.wcpaf-group__heading span { color: var(--wcpaf-muted); font-size: 10px; }
.wcpaf-group__clear, .wcpaf-clear-all { padding: 3px 0; border: 0; background: none; color: var(--wcpaf-primary); font-size: 11px; font-weight: 700; cursor: pointer; }
.wcpaf-group__options { display: grid; gap: 9px; }
.wcpaf-group__options--modal { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.wcpaf-option {
	position: relative;
	display: grid;
	grid-template-columns: 24px 58px minmax(0, 1fr) auto;
	align-items: center;
	gap: 11px;
	min-height: 80px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--wcpaf-line);
	border-radius: 11px;
	background: #fff;
	cursor: pointer;
	transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.wcpaf-option:hover { border-color: #9abfdd; transform: translateY(-1px); }
.wcpaf-option:focus-within { outline: 2px solid rgba(7,94,174,.22); outline-offset: 2px; }
.wcpaf-option.is-selected { border-color: var(--wcpaf-primary); background: var(--wcpaf-primary-soft); box-shadow: 0 5px 16px rgba(7,94,174,.09); }
.wcpaf-option__input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wcpaf-option__check { display: grid; width: 22px; height: 22px; place-items: center; border: 2px solid #9ba7b1; border-radius: 6px; background: #fff; }
.wcpaf-group[data-selection-mode="single"] .wcpaf-option__check { border-radius: 50%; }
.wcpaf-option__check::after { width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px; content: ""; opacity: 0; transform: translateY(-1px) rotate(-45deg); }
.wcpaf-group[data-selection-mode="single"] .wcpaf-option__check::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; transform: none; }
.wcpaf-option.is-selected .wcpaf-option__check { border-color: var(--wcpaf-primary); background: var(--wcpaf-primary); }
.wcpaf-option.is-selected .wcpaf-option__check::after { opacity: 1; }
.wcpaf-option__visual { position: relative; display: grid; width: 58px; height: 58px; place-items: center; overflow: hidden; border: 1px solid rgba(0,0,0,.07); border-radius: 9px; background: #f2f4f6; }
.wcpaf-option__image, .wcpaf-option__color { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
.wcpaf-option__color {background: var(--wcpaf-feature-color); }
.wcpaf-option__color-dot { display:none; position: absolute; right: 5px; bottom: 5px; width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%; background: var(--wcpaf-feature-color); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.wcpaf-option__content { display: grid; gap: 3px; min-width: 0; }
.wcpaf-option__name { color: var(--wcpaf-ink); font-size: 14px; font-weight: 850; line-height: 1.7; }
.wcpaf-option__formula { color: var(--wcpaf-muted); font-size: 11px; }
.wcpaf-option__price { color: var(--wcpaf-primary-dark); font-size: 12px; font-weight: 900; white-space: nowrap; }

.wcpaf-dropdown__trigger, .wcpaf-modal__trigger { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 62px; padding: 10px 12px; border: 1px solid #cbd8e3; border-radius: 10px; background: #fbfdff; color: var(--wcpaf-ink); text-align: right; cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease; }
.wcpaf-dropdown__trigger:hover, .wcpaf-modal__trigger:hover { border-color: var(--wcpaf-primary); box-shadow: 0 4px 13px rgba(7,94,174,.08); }
.wcpaf-dropdown__trigger > span:nth-child(2), .wcpaf-modal__trigger > span:nth-child(2) { display: grid; gap: 2px; }
.wcpaf-dropdown__trigger strong, .wcpaf-modal__trigger strong { font-size: 13px; }
.wcpaf-dropdown__trigger small, .wcpaf-modal__trigger small { color: var(--wcpaf-muted); font-size: 10px; }
.wcpaf-dropdown__trigger b { color: var(--wcpaf-primary); font-size: 22px; transition: transform .16s ease; }
.wcpaf-group.is-open .wcpaf-dropdown__trigger b { transform: rotate(180deg); }
.wcpaf-modal__trigger b { color: var(--wcpaf-primary); font-size: 11px; white-space: nowrap; }
.wcpaf-control-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 9px; background: var(--wcpaf-primary-soft); color: var(--wcpaf-primary); font-size: 22px; font-weight: 400; }
.wcpaf-dropdown__panel { position: absolute; top: calc(100% - 8px); right: 13px; left: 13px; z-index: 60; max-height: 390px; overflow: auto; padding: 10px; border: 1px solid #b9cddd; border-radius: 11px; background: #fff; box-shadow: 0 17px 40px rgba(31,52,69,.18); }
.wcpaf-dropdown__categories { display: grid; gap: 14px; }
.wcpaf-dropdown__category + .wcpaf-dropdown__category { padding-top: 13px; border-top: 1px solid var(--wcpaf-line); }
.wcpaf-dropdown__category h5 { margin: 0 0 8px; color: var(--wcpaf-primary-dark); font-size: 12px; font-weight: 900; }
.wcpaf-group__options--compact .wcpaf-option { min-height: 68px; grid-template-columns: 22px 48px minmax(0,1fr) auto; padding: 8px 9px; }
.wcpaf-group__options--compact .wcpaf-option__visual { width: 48px; height: 48px; }

.wcpaf-group__selected-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.wcpaf-group__selected-chips:empty { display: none; }
.wcpaf-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 6px 4px 5px; border: 1px solid #cddfea; border-radius: 999px; background: #f6fbff; color: #34424e; font-size: 11px; font-weight: 700; }
.wcpaf-chip img, .wcpaf-mini-color { display: block; width: 25px; height: 25px; border: 1px solid rgba(0,0,0,.07); border-radius: 50%; object-fit: cover; }
.wcpaf-chip__remove { display: grid; width: 21px; height: 21px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #e4edf4; color: #50616f; font-size: 16px; line-height: 1; cursor: pointer; }

body.wcpaf-modal-open { overflow: hidden; }
.wcpaf-modal { position: fixed; inset: 0; z-index: 999990; display: grid; place-items: center; padding: 20px; }
.wcpaf-modal[hidden] { display: none; }
.wcpaf-modal__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(12,23,32,.62); cursor: default; }
.wcpaf-modal__panel { position: relative; display: flex; flex-direction: column; width: min(780px, 100%); max-height: min(760px, calc(100vh - 40px)); overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,.32); }
.wcpaf-modal__panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--wcpaf-line); }
.wcpaf-modal__panel h4 { margin: 0 0 3px; font-size: 18px; }
.wcpaf-modal__panel p { margin: 0; color: var(--wcpaf-muted); font-size: 11px; }
.wcpaf-modal__close { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #eef2f5; color: #34424e; font-size: 25px; cursor: pointer; }
.wcpaf-modal__body { overflow: auto; padding: 16px 20px; }
.wcpaf-modal__tabs { display: flex; gap: 7px; overflow-x: auto; margin: 0 0 14px; padding: 0 0 7px; scrollbar-width: thin; }
.wcpaf-modal__tab { flex: 0 0 auto; min-height: 38px; padding: 7px 16px; border: 1px solid #cbd8e3; border-radius: 999px; background: #f8fafb; color: #50616f; font-size: 12px; font-weight: 800; cursor: pointer; }
.wcpaf-modal__tab:hover { border-color: #8bb5d8; color: var(--wcpaf-primary); }
.wcpaf-modal__tab:focus-visible { outline: 2px solid rgba(7,94,174,.3); outline-offset: 2px; }
.wcpaf-modal__tab.is-active { border-color: var(--wcpaf-primary); background: var(--wcpaf-primary); color: #fff; }
.wcpaf-modal__tab-panel[hidden] { display: none; }
.wcpaf-modal__panel > footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 20px; border-top: 1px solid var(--wcpaf-line); background: #f8fafb; }
.wcpaf-modal__panel > footer span { color: var(--wcpaf-muted); font-size: 11px; }
.wcpaf-modal__done { min-height: 40px; padding: 8px 20px; border: 0; border-radius: 9px; background: var(--wcpaf-primary); color: #fff; font-weight: 800; cursor: pointer; }

.wcpaf-selection-summary { margin-top: 16px; overflow: hidden; border: 1px solid #cfe1ef; border-radius: 12px; background: #f7fbff; }
.wcpaf-selection-summary__heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 13px; border-bottom: 1px solid #dbe8f2; color: #455461; font-size: 11px; font-weight: 800; }
.wcpaf-selection-summary__items { display: grid; padding: 4px 13px; }
.wcpaf-selection-summary__empty { margin: 0; padding: 10px 0; color: var(--wcpaf-muted); font-size: 11px; text-align: center; }
.wcpaf-summary-item { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px dashed #cedce7; }
.wcpaf-summary-item:last-child { border-bottom: 0; }
.wcpaf-summary-item > img, .wcpaf-summary-item > .wcpaf-mini-color { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; }
.wcpaf-summary-item > span { display: grid; gap: 2px; }
.wcpaf-summary-item strong { color: #34424e; font-size: 12px; }
.wcpaf-summary-item small { color: var(--wcpaf-muted); font-size: 10px; }
.wcpaf-summary-item b { color: var(--wcpaf-primary-dark); font-size: 11px; white-space: nowrap; }
.wcpaf-selection-summary__base { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 13px; border-top: 1px solid #dbe8f2; background: #fff; color: #52616d; font-size: 11px; font-weight: 700; }
.wcpaf-selection-summary__base-price { color: #34424e; font-size: 12px; white-space: nowrap; }
.wcpaf-selection-summary__total { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px; border-top: 1px solid #cfe1ef; background: #edf7ff; font-size: 13px; font-weight: 900; }
.wcpaf-selection-summary__price { color: var(--wcpaf-primary); font-size: 17px; white-space: nowrap; }
.wcpaf-selection-summary__hint { margin: 0; padding: 0 13px 11px; background: #edf7ff; color: var(--wcpaf-muted); font-size: 10px; }
.wcpaf-options__error { margin: 10px 0 0; padding: 9px 11px; border-right: 3px solid #b81c23; border-radius: 7px; background: #fff0f0; color: #8d151a; font-size: 11px; }

.wcpaf-hover-preview { position: fixed; z-index: 999999; display: grid; width: clamp(300px, 32vw, 380px); height: clamp(300px, 32vw, 380px); max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); place-items: center; overflow: hidden; padding: 9px; border: 1px solid rgba(0,0,0,.16); border-radius: 14px; background: #fff; box-shadow: 0 19px 55px rgba(0,0,0,.27); pointer-events: none; }
.wcpaf-hover-preview[hidden] { display: none; }
.wcpaf-hover-preview img, .wcpaf-hover-preview__color { display: block; width: 100%; height: 100%; border-radius: 7px; object-fit: contain; }
.wcpaf-image-viewer__trigger { position: absolute; bottom: 4px; left: 4px; z-index: 3; display: none; width: 27px; height: 27px; padding: 0; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; background: transparent; color: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.3); cursor: pointer; }
.wcpaf-image-viewer__trigger::before { position: absolute; top: 7px; left: 7px; width: 8px; height: 8px; border: 2px solid currentColor; border-radius: 50%; content: ""; }
.wcpaf-image-viewer__trigger::after { position: absolute; top: 16px; left: 16px; width: 6px; height: 2px; border-radius: 2px; background: currentColor; content: ""; transform: rotate(45deg); transform-origin: left center; }
.wcpaf-image-viewer__trigger:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wcpaf-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(1px,1px,1px,1px) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
body.wcpaf-image-viewer-open { overflow: hidden; }
.wcpaf-image-viewer { position: fixed; inset: 0; z-index: 1000010; display: grid; place-items: center; padding: 16px; direction: rtl; }
.wcpaf-image-viewer[hidden] { display: none !important; }
.wcpaf-image-viewer__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(8,16,24,.82); cursor: default; }
.wcpaf-image-viewer__panel { position: relative; display: flex; width: min(94vw, 680px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); flex-direction: column; align-items: center; justify-content: center; padding: 52px 14px 14px; border-radius: 16px; background: #fff; box-shadow: 0 28px 90px rgba(0,0,0,.45); }
.wcpaf-image-viewer__close { position: absolute; top: 10px; right: 10px; display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #edf2f6; color: #25313b; font-size: 25px; line-height: 1; cursor: pointer; }
.wcpaf-image-viewer__close:focus-visible { outline: 3px solid rgba(7,94,174,.3); outline-offset: 2px; }
.wcpaf-image-viewer__image { display: block; width: 100%; max-height: calc(100vh - 132px); max-height: calc(100dvh - 132px); margin: 0; border-radius: 10px; object-fit: contain; }
.wcpaf-image-viewer__caption { margin: 11px 0 0; color: #26323d; font-size: 14px; font-weight: 800; text-align: center; }
.hbp-purchase-card .wcpaf-options { margin: 16px 0; padding: 14px 0; border-width: 1px 0 0; border-radius: 0; box-shadow: none; }
.wcpaf-cart-feature { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.wcpaf-cart-feature > span:last-child { color: var(--wcpaf-primary); font-weight: 700; }

@media (hover: none), (pointer: coarse) { .wcpaf-hover-preview { display: none !important; } }

@media (max-width: 767px) {
	.wcpaf-image-viewer__trigger { display: block; }
}

@media (max-width: 620px) {
	.wcpaf-options { padding: 13px; border-radius: 11px; }
	.wcpaf-group { padding: 10px; }
	.wcpaf-group__heading { align-items: flex-start; }
	.wcpaf-option, .wcpaf-group__options--compact .wcpaf-option { grid-template-columns: 22px 50px minmax(0,1fr); min-height: 72px; padding: 8px; }
	.wcpaf-option__visual, .wcpaf-group__options--compact .wcpaf-option__visual { width: 50px; height: 50px; }
	.wcpaf-option__price { grid-column: 2 / -1; justify-self: end; }
	.wcpaf-dropdown__panel { position: static; max-height: 330px; margin-top: 7px; box-shadow: 0 10px 25px rgba(31,52,69,.13); }
	.wcpaf-group__options--modal { grid-template-columns: 1fr; }
	.wcpaf-modal { align-items: end; padding: 0; }
	.wcpaf-modal__panel { width: 100%; max-height: 88vh; border-radius: 16px 16px 0 0; }
	.wcpaf-modal__panel > header, .wcpaf-modal__body, .wcpaf-modal__panel > footer { padding-right: 14px; padding-left: 14px; }
	.wcpaf-modal__panel > footer { align-items: stretch; flex-direction: column; }
	.wcpaf-summary-item { grid-template-columns: 34px minmax(0,1fr); }
	.wcpaf-summary-item b { grid-column: 2; }
	.wcpaf-selection-summary__total { align-items: flex-start; flex-direction: column; gap: 5px; }
	.wcpaf-selection-summary__base { align-items: flex-start; flex-direction: column; gap: 4px; }
}
