/* =========================================================
   CHOICE IMAGE - PRODUCT PAGE  (v2, written from scratch)

   Same design language as the cart page:
   - flat white cards, 1px hairline borders, 6px card radius / 4px controls
   - green is the only accent; blue is only for text links
   - the print area (imprint location) is a dashed green outline
   - steps are numbered because they really are a sequence (1-4)

   Kept from the original: colours + font families.
   Spacing scale: 4 / 8 / 12 / 16 / 20 / 24 / 32 / 48
   Type scale:    12 / 13 / 14 / 15 / 16 / 18 / 20 / 24 / 30
   ========================================================= */

.cipl-page,
.cipl-related,
.cipl-lower,
.cipl-modal {
	--white: #fff;
	--green: #0a9444;
	--green-d: #087b39;
	--tint: rgba(140, 198, 62, .15);
	--tint-line: rgba(10, 148, 68, .45);
	--blue: #00478f;
	--lblue: #e6eef7;
	--red: #c8102e;
	--dark: #333;
	--muted: #666;
	--gray: #f2f2f2;
	--line: #e3e3e3;
	--line-soft: #eee;
	--heading-font: var(--global-heading-font-family, inherit);
	--body-font: var(--global-body-font-family, inherit);
}

.cipl-page {
	max-width: 1500px;
	margin: 0 auto;
	padding-top: 20px;
	color: var(--dark);
	font-size: 16px;
	line-height: 1.5;
	box-sizing: border-box;
}

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

.cipl-page button,
.cipl-page input,
.cipl-page select,
.cipl-page textarea {
	font-family: inherit;
}

.cipl-page img {
	max-width: 100%;
	height: auto;
}

/* =========================================================
   MAIN COLUMNS
   ========================================================= */

.cipl-cols {
	display: flex;
	align-items: flex-start;
	gap: 32px;
}

.cipl-left {
	flex: 0 0 42%;
	max-width: 42%;
	min-width: 0;
}

.cipl-right {
	flex: 1 1 0;
	min-width: 0;
}

/* =========================================================
   GALLERY
   ========================================================= */

.cipl-gal-main-wrap {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 12px;
}

.cipl-thumbs {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 78px;
	max-height: 520px;
	margin: 0;
	padding: 2px;
	list-style: none;
	overflow-y: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.cipl-thumbs::-webkit-scrollbar {
	display: none;
}

.cipl-thumbs li {
	margin: 0;
	padding: 0;
}

.cipl-thumb {
	display: block;
	padding: 3px;
	background: #fff !important;
	border: 1px solid var(--line);
	border-radius: 4px;
	cursor: pointer;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.cipl-thumb:hover,
.cipl-thumb:focus {
	border-color: var(--green);
}

.cipl-thumb.is-active {
	border-color: var(--green);
	box-shadow: 0 0 0 1px var(--green);
}

.cipl-thumb img {
	display: block;
	width: 70px;
	height: 70px;
	object-fit: contain;
}

.cipl-main {
	position: relative;
	flex: 1;
	min-width: 0;
	text-align: center;
}

.cipl-main #cipl-main-img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 560px;
	margin: 0 auto;
	cursor: zoom-in;
}

.cipl-tap {
	margin: 8px 0 0;
	color: #777;
	font-size: 13px;
}

/* Gallery arrows */

.cipl-arrow {
	position: absolute;
	top: 42%;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0 0 3px;
	background: rgba(255, 255, 255, .95);
	border: 1px solid var(--line);
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
	color: var(--dark);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.cipl-arrow:hover,
.cipl-arrow:focus {
	background-color: var(--green);
	border-color: var(--green);
	color: #fff;
}

.cipl-prev {
	left: 8px;
}

.cipl-next {
	right: 8px;
}

/* In-place zoom (JS toggles these classes) */

.cipl-viewport {
	position: relative;
	display: block;
	overflow: hidden;
}

.cipl-viewport #cipl-main-img {
	transform-origin: center center;
	transition: transform .12s ease-out;
	user-select: none;
	-webkit-user-drag: none;
}

.cipl-viewport.is-zoomed {
	touch-action: none;
	cursor: grab;
}

.cipl-viewport.is-zoomed #cipl-main-img {
	cursor: grab;
	transition: none;
}

.cipl-viewport.is-zoomed #cipl-main-img:active {
	cursor: grabbing;
}

.cipl-zoomed .cipl-arrow {
	display: none;
}

.cipl-pan {
	position: absolute;
	top: 18%;
	left: 8px;
	z-index: 4;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cipl-pan[hidden] {
	display: none !important;
}

.cipl-panbtn {
	width: 36px;
	height: 36px;
	padding: 0;
	background: var(--dark);
	border: 1px solid var(--dark);
	border-radius: 50%;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease;
}

.cipl-panbtn:hover,
.cipl-panbtn:focus {
	background: var(--green);
	border-color: var(--green);
}

.cipl-panbtn[data-pan="up"],
.cipl-panbtn[data-pan="down"] {
	font-size: 12px;
}

/* =========================================================
   ACTION BUTTONS (Zoom / Highlights / Imprint)
   ========================================================= */

.cipl-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 16px 0 24px;
}

.cipl-abtn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	background: #fff;
	border: 1px solid var(--green);
	border-radius: 4px;
	color: var(--green);
	font-size: 15px;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.cipl-abtn:hover,
.cipl-abtn:focus,
.cipl-abtn.is-active {
	background: var(--green);
	border-color: var(--green);
	color: #fff;
}

.cipl-ico {
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
}

.cipl-ico-play {
	color: #e87d00;
	font-size: 12px;
}

.cipl-abtn:hover .cipl-ico-play,
.cipl-abtn:focus .cipl-ico-play {
	color: #fff;
}

/* The dashed square = "print area" */
.cipl-ico-dash {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px dashed var(--green);
	border-radius: 3px;
}

.cipl-abtn:hover .cipl-ico-dash,
.cipl-abtn:focus .cipl-ico-dash {
	border-color: #fff;
}

/* =========================================================
   TABS (left details tabs + the lower tab bars)
   ========================================================= */

.cipl-tablist {
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.cipl-tablist::-webkit-scrollbar {
	display: none;
}

.cipl-tabbtn {
	flex: 1 0 auto;
	margin: 0;
	padding: 12px 16px;
	background: none;
	border: 0;
	border-bottom: 3px solid var(--line);
	border-radius: 0;
	box-shadow: none;
	color: var(--muted);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.cipl-tabbtn:hover,
.cipl-tabbtn:focus {
	background: var(--tint);
	border-bottom-color: var(--tint-line);
	color: var(--dark);
	box-shadow: none;
}

.cipl-tabbtn.is-active,
.cipl-tabbtn.is-active:hover,
.cipl-tabbtn.is-active:focus {
	background: none;
	border-bottom-color: var(--green);
	color: var(--green);
}

.cipl-tabpanel {
	display: none;
	padding-top: 24px;
}

.cipl-tabpanel.is-active {
	display: block;
}

.cipl-left-tabs .cipl-tabpanel {
	font-size: 15px;
	line-height: 1.65;
}

.cipl-left-tabs .cipl-tabpanel p:first-child {
	margin-top: 0;
}

.cipl-tabpanel h3 {
	margin: 0 0 8px;
	font-family: var(--heading-font);
	font-size: 18px;
	font-weight: 600;
}

.cipl-tabpanel ul {
	margin: 0 0 1em 1.2em;
	padding: 0;
	list-style: disc;
}

.cipl-tabpanel li {
	margin-bottom: 6px;
}

.cipl-tabpanel li::marker {
	color: var(--green);
}

/* Share */

.cipl-share {
	display: flex;
	gap: 16px;
	margin: 16px 0 0;
}

.cipl-share a {
	display: flex;
	align-items: center;
	width: 30px;
	height: 30px;
	color: #3b5998;
	transition: opacity .2s ease;
}

.cipl-share a:hover {
	opacity: .6;
}

.cipl-share a.cipl-share-print {
	color: #555;
}

/* =========================================================
   PRODUCT TITLE
   ========================================================= */

.cipl-title {
	margin: 0 0 8px;
	font-family: var(--heading-font);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
}

.cipl-top p {
	margin: 0 0 6px;
}

.cipl-item {
	color: #777;
	font-size: 18px;
}

.cipl-ready {
	font-weight: 600;
}

.cipl-rating {
	font-size: 14px;
}

.cipl-stars {
	position: relative;
	display: inline-block;
	font-size: 18px;
	line-height: 1;
	letter-spacing: 1px;
	vertical-align: middle;
}

.cipl-stars-bg {
	color: #ccc;
}

.cipl-stars-fg {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
	color: #f0a500;
}

.cipl-rating-link {
	margin-left: 4px;
	color: var(--blue);
	text-decoration: underline;
}

.cipl-rating-link:hover {
	color: var(--green);
}

/* =========================================================
   STEPS (numbered cards)
   ========================================================= */

.cipl {
	margin: 24px 0;
}

.cipl-step {
	margin: 0 0 20px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 6px;
}

/* The steps really are a sequence: 1-2 on the first screen, 3-4 on the second */
#cipl-step1>.cipl-step:nth-of-type(1) {
	--n: "1";
}

#cipl-step1>.cipl-step:nth-of-type(2) {
	--n: "2";
}

#cipl-step2>.cipl-step:nth-of-type(1) {
	--n: "3";
}

#cipl-step2>.cipl-step:nth-of-type(2) {
	--n: "4";
}

.cipl-hd {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 !important;
	padding: 16px 20px;
	background: none;
	border-bottom: 1px solid var(--line-soft);
	color: var(--dark) !important;
	font-family: var(--heading-font);
	font-size: 18px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	text-transform: none;
}

/* No --n on a step = no badge */
.cipl-hd::before {
	content: var(--n);
	flex: 0 0 28px;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	background: var(--green);
	border-radius: 50%;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}

.cipl-hd>.cipl-tipwrap,
.cipl-hd>.cipl-hd-right {
	margin-left: auto;
}

.cipl-body {
	margin: 0;
	padding: 20px;
	background: none;
	border-radius: 0;
}

.cipl-count {
	color: var(--dark);
	font-size: 15px;
	font-weight: 500;
}

/* Text-link buttons (Size Chart, Add Additional Imprint Location ...) */
.cipl-link {
	display: inline-block;
	margin: 12px 0 4px;
	padding: 0;
	background: transparent !important;
	border: 0;
	box-shadow: none !important;
	color: var(--blue);
	font-size: 15px;
	font-weight: 500;
	text-align: left;
	text-decoration: underline;
	cursor: pointer;
	transition: color .2s ease;
}

.cipl-link:hover {
	color: var(--green);
	text-decoration: underline;
}

/* =========================================================
   HELP TOOLTIPS
   ========================================================= */

.cipl-hd-right {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--body-font);
	font-size: 14px;
	font-weight: 400;
}

.cipl-glide {
	color: var(--muted);
}

.cipl-tipwrap {
	display: inline-flex;
	align-items: center;
}

.cipl-tip-btn {
	width: 24px;
	height: 24px;
	padding: 0;
	background: var(--green);
	border: 0;
	border-radius: 50%;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s ease;
}

.cipl-tip-btn:hover {
	background: var(--green-d);
}

.cipl-tip-btn:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 2px;
}

.cipl-tip-btn[aria-expanded="true"] {
	background: var(--green-d);
}

.cipl-tip {
	position: absolute;
	top: calc(100% + 6px);
	right: 12px;
	z-index: 30;
	width: 290px;
	max-width: calc(100% - 24px);
	padding: 12px 14px;
	background: #fff;
	border: 1px solid #bbb;
	border-radius: 4px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
	color: var(--dark);
	font-family: var(--body-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
}

.cipl-tip[hidden] {
	display: none !important;
}

/* =========================================================
   STEP 1: COLOR
   ========================================================= */

.cipl-cbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 16px;
}

.cipl-cbar .cipl-count {
	margin: 0;
}

.cipl-filter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #555;
	font-size: 14px;
}

.cipl-filter strong {
	color: var(--dark);
	font-weight: 600;
}

.cipl-filter select {
    min-width: 120px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #b5b5b5;
    border-radius: 4px;
    font-size: 15px;
}

.cipl-sw-wrap {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

.cipl-swatches {
	display: flex;
	flex: 1 1 auto;
	gap: 10px;
	min-width: 0;
	padding: 4px 2px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.cipl-swatches::-webkit-scrollbar {
	width: 0;
	height: 0;
	display: none;
}

.cipl-sw {
	position: relative;
	flex: 0 0 96px;
	min-height: 114px;
	padding: 10px 6px 8px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 6px;
	box-shadow: none;
	cursor: pointer;
	transition: border-color .2s ease, background-color .2s ease;
}

.cipl-sw:hover,
.cipl-sw:focus {
	background: #fbfdf8;
	border-color: var(--green);
	box-shadow: none;
}

.cipl-sw.is-active {
	padding: 9px 5px 7px;
	background: var(--tint);
	border: 2px solid var(--green);
}

/* Selected tick (colour is not the only signal) */
.cipl-sw.is-active::after {
	content: "";
	position: absolute;
	top: 5px;
	right: 5px;
	width: 18px;
	height: 18px;
	background: var(--green);
	border-radius: 50%;
}

.cipl-sw.is-active::before {
	content: "";
	position: absolute;
	top: 8px;
	right: 11px;
	z-index: 1;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.cipl-sw img {
	display: block;
	width: 64px;
	height: 64px !important;
	margin: 0 auto 8px;
	object-fit: contain;
}

.cipl-dot {
	display: block;
	width: 46px;
	height: 46px;
	margin: 0 auto 6px;
	border: 1px solid #bbb;
	border-radius: 50%;
}

.cipl-swl {
	display: block;
	color: var(--dark);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.25;
	text-align: center;
	overflow-wrap: anywhere;
}

.cipl-sw-nav {
	flex: 0 0 36px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0 0 3px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--dark);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: all .2s ease;
}

.cipl-sw-nav:hover,
.cipl-sw-nav:focus {
	background: var(--green);
	border-color: var(--green);
	color: #fff;
}

.cipl-sw-nav:active {
	background: var(--green-d);
	border-color: var(--green-d);
}

.cipl-sw-nav:disabled {
	opacity: .4;
	background: #f5f5f5;
	border-color: #ddd;
	color: #999;
	cursor: not-allowed;
}

.cipl-sw-nav:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 2px;
}

/* Selected colour line */
.cipl-sel {
	margin: 16px 0 0;
	padding: 10px 14px;
	background: #f7f7f7;
	border-left: 3px solid var(--green);
	border-radius: 0 4px 4px 0;
	font-size: 14px;
}

.cipl-seldot {
	display: none;
	width: 16px;
	height: 16px;
	margin-inline: 6px;
	border: 1px solid #999;
	border-radius: 50px;
	vertical-align: middle;
}

/* =========================================================
   STEP 2: QUANTITY
   ========================================================= */

.cipl-scroll {
	overflow-x: auto;
}

.cipl-prices {
	width: 100%;
	min-width: 560px;
	margin: 0;
	background: #fff;
	border: 1px solid var(--line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 4px;
	font-size: 14px;
	overflow: hidden;
}

.cipl-prices th,
.cipl-prices td {
	padding: 10px 12px;
	background: none;
	border: 0;
	border-right: 1px solid var(--line-soft);
	border-bottom: 1px solid var(--line-soft);
	text-align: center;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.cipl-prices tr>*:last-child {
	border-right: 0;
}

.cipl-prices tr:last-child>* {
	border-bottom: 0;
}

.cipl-prices th {
	background: #f7f7f7;
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
}

.cipl-prices td {
	color: var(--dark);
	font-size: 16px;
	font-weight: 600;
}

.cipl-prices tr th:first-child {
	text-align: left;
}

.cipl-prices .cipl-tier.is-active {
	background: var(--tint);
	color: var(--green-d);
	font-weight: 700;
}

.cipl-hint {
	margin: 12px 0 0;
	color: #555;
	font-size: 14px;
}

.cipl-hint a {
	color: var(--blue);
	text-decoration: underline;
}

.cipl-hint a:hover {
	color: var(--green);
}

.cipl-msg {
	min-height: 1px;
	margin: 8px 0 0;
	color: var(--red);
	font-size: 15px;
}

.cipl-msg.is-ok {
	color: var(--green-d);
}

/* Sizes */

.cipl-size-h {
	margin: 24px 0 4px;
	color: var(--dark);
	font-family: var(--heading-font);
	font-size: 16px;
	font-weight: 600;
}

.cipl-size-min {
	margin: 0 0 12px;
	color: var(--muted);
	font-size: 14px;
}

.cipl-sizetbl {
	margin: 0;
	border-collapse: separate;
	border-spacing: 0;
}

.cipl-sizetbl th {
	padding: 0 3px 4px;
	background: none;
	border: 0;
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
	text-align: center;
}

.cipl-sizetbl td {
	padding: 3px;
	background: none;
	border: 0;
	text-align: center;
}

.cipl-sizetbl input {
	width: 64px;
	height: 44px;
	margin: 0;
	padding: 6px;
	background: #fff;
	border: 1px solid #b5b5b5;
	border-radius: 4px;
	font-size: 15px;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.cipl-sizetbl input::-webkit-outer-spin-button,
.cipl-sizetbl input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.cipl-sizetbl input:focus {
	outline: none;
	border-color: var(--green);
	box-shadow: 0 0 0 3px rgba(10, 148, 68, .15);
}

.cipl-sizetbl input:disabled {
	background: #f5f5f5;
	border-style: dashed;
	border-color: #ccc;
	color: #999;
	cursor: not-allowed;
}

.cipl-sizetbl input::placeholder {
	color: #aaa;
	font-size: 12px;
}

/* Fit meter */

.cipl-fitm {
	margin: 24px 0 8px;
	font-size: 14px;
	text-align: center;
}

.cipl-fitm-t {
	margin: 0 0 12px;
}

.cipl-fitm-bars {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
}

.cipl-fitm-c {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.cipl-fitm-c em {
	display: block;
	margin-bottom: 6px;
	color: #555;
	font-size: 13px;
	font-style: normal;
}

.cipl-fitm-c i {
	display: block;
	height: 4px;
	background: #ddd;
	border-radius: 2px;
}

.cipl-fitm-c.is-on em {
	color: var(--dark);
	font-weight: 600;
}

.cipl-fitm-c.is-on i {
	height: 6px;
	background: var(--green);
	border-radius: 3px;
}

/* Running total */

.cipl-tot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 20px;
	padding: 16px 20px;
	background: var(--tint);
	border: 1px solid var(--tint-line);
	border-radius: 4px;
	font-size: 15px;
	font-variant-numeric: tabular-nums;
}

.cipl-tot p {
	margin: 0 0 4px;
}

.cipl-tot p:last-child {
	margin-bottom: 0;
}

.cipl-tot p span {
	margin-left: 16px;
	font-weight: 600;
}

.cipl-tot-sub {
	margin: 0;
	text-align: right;
}

.cipl-tot-sub strong {
	margin-left: 12px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
}

/* =========================================================
   CARD FOOTER + BUTTONS
   ========================================================= */

.cipl-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 16px 20px;
	background: #fafafa;
	border-top: 1px solid var(--line-soft);
	border-radius: 0 0 6px 6px;
}

.cipl-foot-plain {
	margin: 20px 0 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
}

.cipl-foot-links {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cipl-ficon {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: var(--dark);
	font-size: 14px;
	font-weight: 400;
	text-decoration: none;
}

.cipl-ficon:hover {
	color: var(--green);
	text-decoration: underline;
}

.cipl-fi {
	flex: 0 0 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--green);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.cipl-fi img {
	width: 16px;
	height: 16px;
}

.cipl-page .cipl-btn {
	display: inline-block;
	padding: 14px 24px;
	border: 1px solid transparent;
	border-radius: 4px;
	color: #fff !important;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.cipl-page .cipl-btn-blue {
	background: var(--blue);
	border-color: var(--blue);
}

/* Primary actions are all green */
.cipl-page .cipl-btn-green,
.cipl-page .cipl-btn-gray,
.cipl-page .cipl-btn-red {
	background: var(--green);
	border-color: var(--green);
}

.cipl-page .cipl-btn-green:not(:disabled):hover,
.cipl-page .cipl-btn-green:not(:disabled):focus,
.cipl-page .cipl-btn-gray:hover,
.cipl-page .cipl-btn-gray:focus,
.cipl-page .cipl-btn-red:hover,
.cipl-page .cipl-btn-red:focus {
	background: var(--green-d);
	border-color: var(--green-d);
	color: #fff !important;
}

.cipl-page .cipl-btn-white {
	background: #fff;
	border-color: #888;
	color: var(--dark) !important;
}

.cipl-page .cipl-btn-white:hover,
.cipl-page .cipl-btn-white:focus {
	background: var(--green);
	border-color: var(--green);
	color: #fff !important;
}

.cipl-page .cipl-btn:disabled {
	opacity: .45;
	cursor: not-allowed;
}

/* =========================================================
   STEP 3: IMPRINT LOCATIONS (each one is a dashed print area)
   ========================================================= */

.cipl-locrow {
    margin: 0 0 16px;
    padding: 16px 20px 20px;
    background: var(--tint);
    border: 1px dashed var(--tint-line);
}

.cipl-loc-hd {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 12px;
	padding: 0 0 12px;
	background: none;
	border-bottom: 1px solid var(--tint-line);
	font-family: var(--heading-font);
	font-size: 16px;
	font-weight: 600;
}

.cipl-lbl {
	display: block;
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
}

.cipl-lbl select {
	display: block;
	width: 100%;
	height: 44px;
	margin-top: 6px;
	padding: 0 12px;
	background: #fff;
	border: 1px solid #b5b5b5;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 400;
}

.cipl-cwrap {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
}

.cipl-cwrap select {
	flex: 1 1 auto;
	margin-top: 0;
}

.cipl-cdot {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	background: transparent;
	border: 1px solid #888;
	border-radius: 50%;
}

.cipl-cdot.is-empty {
	background: repeating-linear-gradient(45deg, #eee, #eee 4px, #fff 4px, #fff 8px) !important;
}

.cipl-cx {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 50%;
	color: #555;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

.cipl-cx:hover,
.cipl-cx:focus-visible {
	background: #fde8eb;
	color: var(--red);
}

/* "+ Add Additional Imprint Location" - a dashed button, like the print area itself */
.cipl-page #cipl-add-loc {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 4px 0 0;
	padding: 10px 16px;
	background: #fff !important;
	border: 1px dashed var(--green);
	border-radius: 4px;
	color: var(--green);
	font-weight: 500;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}

.cipl-page #cipl-add-loc::before {
	content: "+";
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}

.cipl-page #cipl-add-loc:hover {
	background: var(--green) !important;
	color: #fff;
	text-decoration: none;
}

/* Artwork upload */

.cipl-art {
	margin-top: 12px;
}

.cipl-page .cipl-art .cipl-art-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff !important;
    border: 1px solid var(--green);
    border-radius: 4px;
    color: var(--green) !important;
    font-size: 15px;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.cipl-page .cipl-art .cipl-art-btn:hover,
.cipl-page .cipl-art .cipl-art-btn:focus {
	background: var(--green) !important;
	color: #fff !important;
}

.cipl-art-note {
	margin: 8px 0 0;
	padding: 8px 12px;
	background: #fff;
	border-left: 3px solid var(--green);
	border-radius: 0 4px 4px 0;
	color: #555;
	font-size: 13px;
}

.cipl-art-status {
	margin: 8px 0 0;
	font-size: 14px;
}

.cipl-art-status.is-ok {
	color: var(--green-d);
}

.cipl-art-status.is-err {
	color: var(--red);
}

.cipl-notes {
	display: block;
	margin: 20px 0 12px;
	font-size: 14px;
	font-weight: 600;
}

.cipl-notes textarea {
	display: block;
	width: 100%;
	min-height: 88px;
	margin-top: 6px;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid #b5b5b5;
	border-radius: 4px;
	font: inherit;
	font-size: 15px;
	font-weight: 400;
}

.cipl-notes textarea:focus {
	outline: none;
	border-color: var(--green);
	box-shadow: 0 0 0 3px rgba(10, 148, 68, .15);
}

/* =========================================================
   STEP 4: PRODUCT SUMMARY + ADDED TO CART
   ========================================================= */

.cipl-sum {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
	font-variant-numeric: tabular-nums;
}

.cipl-sum th {
	width: 55%;
	padding: 10px 0;
	background: none;
	border: 0;
	border-bottom: 1px solid var(--line-soft);
	color: var(--muted);
	font-weight: 500;
	text-align: left;
}

.cipl-sum td {
	padding: 10px 0;
	background: none;
	border: 0;
	border-bottom: 1px solid var(--line-soft);
	font-weight: 600;
	text-align: right;
}

.cipl-sum .cipl-total th,
.cipl-sum .cipl-total td {
	padding: 16px 12px;
	background: var(--tint);
	border-top: 1px solid var(--tint-line);
	border-bottom: 0;
	color: var(--dark);
	font-size: 16px;
	font-weight: 600;
}

.cipl-sum .cipl-total td {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
}

.cipl-added-t {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	color: var(--green-d);
	font-family: var(--heading-font);
	font-size: 20px;
	font-weight: 600;
}

.cipl-added-t::before {
	content: "\2713";
	display: grid;
	place-items: center;
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	background: var(--green);
	border-radius: 50%;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

.cipl-added-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 16px;
}

.cipl-added-name {
	margin: 0 0 12px;
	font-size: 14px;
}

#cipl-added-sum h4 {
	margin: 0 0 8px;
	color: var(--global-palette3, var(--dark));
	font-family: var(--heading-font);
	font-size: 20px;
	font-weight: 600;
}

.cipl-imp-sum {
	margin: 0 0 0 1.2em;
	padding: 0;
	list-style: disc;
	font-size: 15px;
}

/* =========================================================
   ERROR BOX
   ========================================================= */

.cipl-errbox {
	max-width: 100%;
	margin: 0 0 16px;
	padding: 12px 16px;
	background: #fff5f6;
	border: 1px solid #f0c7ce;
	border-left: 4px solid var(--red);
	border-radius: 4px;
	color: #8f0b21;
	font-size: 14px;
	line-height: 1.5;
}

.cipl-errbox p {
	margin: 0 0 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid #f0c7ce;
	color: #8f0b21;
	font-weight: 600;
}

.cipl-errbox ul {
	margin: 0 0 0 18px;
	padding: 0;
	list-style: disc;
}

.cipl-errbox li {
	margin: 3px 0;
}

.cipl-errbox a {
	color: var(--blue);
	font-weight: 500;
	text-decoration: underline;
}

.cipl-errbox a:hover,
.cipl-errbox a:focus {
	color: var(--green);
}

.cipl-errbox:empty {
	display: none;
}

.cipl-errbox[hidden] {
	display: none !important;
}

/* =========================================================
   RELATED PRODUCTS
   ========================================================= */

.cipl-related,
.cipl-lower {
	clear: both;
	margin-top: 64px;
}

.cipl-rel-wrap {
	position: relative;
	padding-inline: 44px;
}

.cipl-rel-track {
	display: flex;
	gap: 20px;
	padding-bottom: 4px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.cipl-rel-track::-webkit-scrollbar {
	width: 0;
	height: 0;
	display: none;
}

.cipl-rel-nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 40px !important;
	height: 40px;
	padding: 0 0 3px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
	color: var(--dark);
	font-size: 24px;
	line-height: 1;
	transform: translateY(-50%);
	cursor: pointer;
	transition: all .2s ease;
}

.cipl-rel-nav:hover,
.cipl-rel-nav:focus {
	background: var(--green);
	border-color: var(--green);
	color: #fff;
}

.cipl-rel-prev {
	left: -6px;
}

.cipl-rel-next {
	right: -6px;
}

.cipl-card {
	flex: 0 0 200px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: var(--dark) !important;
	font-size: 14px;
	text-decoration: none !important;
}

.cipl-card .cipl-card-media {
	height: 200px;
	background: #f6f6f6;
	border: 1px solid var(--line-soft);
	border-radius: 6px;
	overflow: hidden;
}

.cipl-card .cipl-card-media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.cipl-card-name {
	margin-top: 12px;
	font-family: var(--heading-font);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	transition: color .2s ease;
}

.cipl-card:hover .cipl-card-name {
	color: var(--green);
}

.cipl-card-price {
	color: var(--dark);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.cipl-card-price del {
	color: #888;
	font-weight: 400;
}

.cipl-card-ready {
	color: #555;
	font-size: 13px;
}

.cipl-card-rate .cipl-stars {
	font-size: 14px;
}

/* =========================================================
   LOWER AREA: STORIES / REVIEWS / PHOTOS / FIT
   ========================================================= */

.cipl-st-title {
	margin: 12px 0 4px !important;
	font-family: var(--heading-font);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
}

.cipl-tabpanel[data-panel="photos"]  .cipl-st-title {
    margin-block: 0 24px !important;
}

.cipl-st-sub {
	margin: 0 0 24px;
	color: var(--muted);
	font-size: 14px;
}

.cipl-popular {
	margin-bottom: 32px;
	padding: 20px 24px;
	background: var(--tint);
	border: 1px solid var(--tint-line);
	border-radius: 6px;
	text-align: left;
}

.cipl-popular p {
	margin: 0;
}

.cipl-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.cipl-chip {
	padding: 8px 16px;
	background: #fff;
	border: 1px solid var(--tint-line);
	color: var(--dark);
	font-size: 14px;
	line-height: 18px;
	cursor: pointer;
	transition: all .2s ease;
}

.cipl-chip:hover,
.cipl-chip:focus,
.cipl-chip.is-active {
	background: var(--green);
	border-color: var(--green);
	color: #fff;
}

.cipl-chip-note {
	margin-top: 8px !important;
	color: #666;
	font-size: 12px;
}

.cipl-story-grid,
.cipl-rv-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
	text-align: left;
}

.cipl-rv-grid {
	align-items: start;
}

.cipl-story,
.cipl-rv-card {
	height: 100%;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 6px;
	font-size: 14px;
}

.cipl-rv-card {
	height: auto;
}

.cipl-story h4,
.cipl-rv-card h4 {
	margin: 0 0 4px;
	color: var(--dark);
	font-family: var(--heading-font);
	font-size: 16px;
	font-weight: 600;
	text-transform: capitalize;
}

.cipl-story p,
.cipl-rv-card p {
	margin: 0 0 8px;
}

.cipl-story p:last-child,
.cipl-rv-card p:last-child {
	margin-bottom: 0;
}

.cipl-story-meta {
	color: #555;
	font-size: 13px;
}

/* Reviews summary */

.cipl-lower #reviews #comments {
	float: none;
	width: 100%;
}

.cipl-lower #review_form_wrapper {
	clear: both;
}

.cipl-rv,
.cipl-rv .cipl-st-title,
.cipl-rv .cipl-st-sub {
	text-align: left;
}

.cipl-rv-top {
	display: flex;
	align-items: stretch;
	gap: 20px;
	margin-bottom: 32px;
	padding: 24px;
	background: var(--tint);
	border: 1px solid var(--tint-line);
	border-radius: 6px;
}

.cipl-rv-box {
	padding: 20px;
	background: #fff;
	border-radius: 4px;
	font-size: 14px;
}

.cipl-rv-box h4 {
	margin: 0 0 8px;
	font-family: var(--heading-font);
	font-size: 15px;
	font-weight: 600;
}

.cipl-rv-overall {
	flex: 0 0 356px;
	max-width: 100%;
}

.cipl-rv-summary {
	flex: 1 1 auto;
}

.cipl-rv-summary p {
	margin: 0;
}

.cipl-rv-avg {
	margin: 0 0 8px;
}

.cipl-rv-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
	font-size: 14px;
}

.cipl-rv-row>span:first-child {
	width: 56px;
	color: var(--blue);
	text-decoration: underline;
}

.cipl-rv-row>span:last-child {
	width: 40px;
	text-align: right;
}

.cipl-rv-tools {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin-bottom: 16px;
	font-family: var(--heading-font);
	font-size: 15px;
	font-weight: 500;
}

.cipl-rv-tools>label {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cipl-rv-tools select {
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--green);
    border-radius: 4px;
    font-family: var(--heading-font);
    font-size: 15px;
    line-height: 24px;
}

/* Photos */

.cipl-photo-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	align-items: start;
	margin-top: 16px;
	text-align: center;
}

.cipl-photo {
	padding: 0;
	background: none;
	border: 0;
	cursor: zoom-in;
}

.cipl-photo img {
	width: 100%;
	height: 160px;
	border-radius: 4px;
	object-fit: cover;
}

.cipl-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
    margin-top: 16px;
    text-align: center;
}

.cipl-photo-card {
	padding: 12px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 6px;
	font-size: 14px;
}

.cipl-photo-card .cipl-photo {
	display: block;
	width: 100%;
	height: 250px;
	background: none !important;
	box-shadow: none !important;
}

.cipl-photo-card .cipl-photo img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: none;
	border-radius: 4px;
	object-fit: cover;
}

.cipl-photo-card .cipl-photo-card-cnt {
	margin-bottom: 0;
	text-align: left;
}

/* Fit rating */

.cipl-fit {
	max-width: 640px;
}

.cipl-tabpanel[data-panel="fit"] .cipl-st-title {
	margin-bottom: 24px !important;
}

.cipl-fit-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}

.cipl-fit-row>span:first-child {
	width: 110px;
}

.cipl-fit-row>span:last-child {
	width: 44px;
	text-align: right;
}

.cipl-fit-bar {
	flex: 1 1 auto;
	height: 10px;
	background: #e6e6e6;
	border-radius: 5px;
	overflow: hidden;
}

.cipl-fit-bar i {
	display: block;
	height: 100%;
	background: var(--green);
}

.cipl-fit-c {
	margin: 6px 0;
	font-size: 14px;
}

/* Pagination */

.cipl-pager,
.cipl-lower .woocommerce-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 40px 0 0;
}

.cipl-pager button {
	width: 36px;
	height: 36px;
	padding: 0 8px;
	background: var(--tint);
	border: 0;
	border-radius: 4px;
	color: var(--dark);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all .2s ease;
}

.cipl-pager button:hover,
.cipl-pager button:focus,
.cipl-pager button.is-active {
	background: var(--green);
	color: #fff;
	text-decoration: none;
}

.cipl-pager button:first-child,
.cipl-pager button:last-child {
	font-size: 26px;
	line-height: 1;
}

.cipl-pager button:disabled {
	color: #bbb;
	cursor: default;
}

.cipl-lower .woocommerce-pagination ul {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}

.cipl-lower .woocommerce-pagination li {
	float: none;
	margin: 0;
	border: 0 !important;
}

.cipl-lower .woocommerce-pagination .page-numbers {
	display: inline-block;
	min-width: 32px;
	height: 38px;
	padding: 0 8px;
	background: none;
	border-radius: 4px;
	color: #222;
	line-height: 38px;
	text-align: center;
	text-decoration: none;
}

.cipl-lower .woocommerce-pagination .page-numbers.current {
	background: var(--tint);
	color: var(--green-d);
	font-weight: 700;
}

.cipl-lower .woocommerce-pagination a.page-numbers:hover {
	background: #eee;
}

/* =========================================================
   MODALS
   ========================================================= */

.cipl-noscroll {
	overflow: hidden;
}

.cipl-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, .65);
}

.cipl-modal[hidden] {
	display: none;
}

.cipl-modal-box {
    position: relative;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    padding: 32px 24px;
    background: #fff;
    border-radius: 6px;
    color: var(--dark);
    overflow: auto;
}

.cipl-modal-x {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 0;
    background: transparent;
    border: 0;
    color: #444;
    font-size: 30px;
    line-height: .6;
    cursor: pointer;
}

.cipl-modal-x:hover,
.cipl-modal-x:focus {
	background: transparent;
	color: var(--green);
}

.cipl-modal-box .cipl-modal-body img {
	width: 100%;
}

.cipl-zoomwrap {
	max-height: 80vh;
	overflow: auto;
	text-align: center;
}

.cipl-zoomimg {
	max-width: 100%;
	cursor: zoom-in;
}

.cipl-zoomimg.is-zoomed {
	width: 200%;
	max-width: none;
	cursor: zoom-out;
}

.cipl-zoomhint {
	margin: 8px 0 0;
	color: #666;
	font-size: 13px;
	text-align: center;
}

.cipl-modal-imprint .cipl-modal-box {
	max-width: 500px;
}

.cipl-modal-zoom .cipl-modal-box {
    max-width: 500px;
}

.cipl-modal-imprint .cipl-modal-box .cipl-modal-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cipl-modal-imprint .cipl-modal-box .cipl-modal-body h3 {
	order: 1;
	margin: 0 0 4px;
	font-family: var(--heading-font);
	font-size: 22px;
	font-weight: 600;
}

.cipl-modal-imprint .cipl-modal-box .cipl-modal-body img {
	order: 2;
	max-width: 240px !important;
	margin-inline: auto;
}

.cipl-modal-imprint .cipl-modal-box .cipl-modal-body p {
	order: 3;
	margin: 0;
	line-height: normal;
}

.cipl-modal-sizechart .cipl-modal-body {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.cipl-modal-sizechart .cipl-modal-body table {
	margin: 0;
	border-collapse: collapse;
	text-align: center;
}

/* =========================================================
   KEYBOARD FOCUS + MOTION
   ========================================================= */

.cipl-page a:focus-visible,
.cipl-page button:focus-visible,
.cipl-page select:focus-visible,
.cipl-page input:focus-visible,
.cipl-page textarea:focus-visible,
.cipl-modal button:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

	.cipl-page *,
	.cipl-page *::before,
	.cipl-page *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {

	.cipl-page {
		max-width: 100%;
	}

	.cipl-cols {
		gap: 24px;
	}

	.cipl-left {
		flex-basis: 44%;
		max-width: 44%;
	}

	.cipl-title {
		font-size: 28px;
	}

	.cipl-story-grid,
	.cipl-rv-grid,
	.cipl-photo-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1024px) {

	.cipl-cols {
		gap: 20px;
	}

	.cipl-left {
		flex-basis: 42%;
		max-width: 42%;
	}

	.cipl-title {
		font-size: 26px;
	}

	.cipl-story-grid,
	.cipl-rv-grid,
	.cipl-photo-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cipl-card {
		flex-basis: 180px;
	}

	.cipl-card .cipl-card-media {
		height: 180px;
	}
}

/* Stack the two columns */
@media (max-width: 900px) {

	.cipl-page {
		padding-top: 16px;
	}

	.cipl-cols {
		flex-direction: column;
		gap: 32px;
	}

	.cipl-left,
	.cipl-right {
		flex: 1 1 auto;
		width: 100%;
		max-width: 100%;
	}

	.cipl-gal-main-wrap {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.cipl-thumbs {
		flex-direction: row;
		flex-wrap: nowrap;
		width: 100%;
		max-height: none;
		overflow-x: auto;
		overflow-y: hidden;
	}

	.cipl-thumb {
		flex: 0 0 auto;
	}

	.cipl-main #cipl-main-img {
		max-height: 520px;
	}

	.cipl-title {
		font-size: 24px;
	}

	.cipl-foot {
		flex-direction: column;
		align-items: stretch;
	}

	.cipl-foot .cipl-btn {
		width: 100%;
	}

	.cipl-related,
	.cipl-lower {
		margin-top: 40px;
	}

	.cipl-rv-top {
		flex-direction: column;
	}

	.cipl-rv-overall {
		flex: 1 1 auto;
	}

	.cipl-st-title {
		margin: 0 0 4px !important;
		font-size: 20px;
	}
}

@media (max-width: 767px) {

	.cipl-body {
		padding: 16px;
	}

	.cipl-hd {
		padding: 14px 16px;
		font-size: 17px !important;
	}

	.cipl-foot {
		padding: 16px;
	}

	.cipl-rv-grid {
		grid-template-columns: 1fr;
	}

	.cipl-photo-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cipl-tip {
		width: 250px;
	}
}

@media (max-width: 575px) {

	.cipl-page {
		font-size: 15px;
	}

	.cipl-cols {
		gap: 24px;
	}

	.cipl-title {
		font-size: 22px;
	}

	.cipl-item {
		font-size: 16px;
	}

	.cipl-main #cipl-main-img {
		max-height: 400px;
	}

	.cipl-thumb img {
		width: 60px;
		height: 60px;
	}

	.cipl-arrow {
		width: 36px;
		height: 36px;
		font-size: 22px;
	}

	.cipl {
		margin: 20px 0;
	}

	.cipl-hd {
		padding: 12px 14px;
		font-size: 16px !important;
	}

	.cipl-hd::before {
		flex-basis: 26px;
		width: 26px;
		height: 26px;
		font-size: 13px;
	}

	.cipl-sw {
		flex-basis: 84px;
		min-height: 104px;
	}

	.cipl-sw img {
		width: 56px;
		height: 56px !important;
	}

	.cipl-sw-nav {
		flex-basis: 32px;
		width: 32px;
		height: 32px;
		font-size: 20px;
	}

	.cipl-cbar {
		align-items: flex-start;
		flex-direction: column;
	}

	.cipl-filter {
		width: 100%;
		justify-content: space-between;
	}

	.cipl-filter select {
		flex: 1 1 auto;
	}

	.cipl-sizes {
		overflow-x: auto;
	}

	.cipl-sizetbl {
		display: block;
		width: 100%;
		overflow-x: auto;
	}

	.cipl-actions {
		gap: 8px;
	}

	.cipl-abtn {
		padding: 8px 12px;
		font-size: 14px;
	}

	.cipl-locrow {
		padding: 12px 14px 16px;
	}

	.cipl-story-grid,
	.cipl-photo-grid {
		grid-template-columns: 1fr;
	}

	.cipl-fitm-c em {
		font-size: 11px;
	}

	.cipl-fitm-bars {
		gap: 5px;
	}

	.cipl-tot {
		flex-direction: column;
		align-items: flex-start;
	}

	.cipl-tot-sub {
		width: 100%;
		text-align: left;
	}

	.cipl-tabbtn {
		padding: 12px 14px;
		font-size: 14px;
	}

	.cipl-modal {
		padding: 10px;
	}

	.cipl-modal-box {
		padding: 24px 16px;
	}

	.cipl-tip {
		width: 240px;
	}

	.cipl-rel-wrap {
		padding-inline: 36px;
	}

	.cipl-rel-nav {
		width: 36px !important;
		height: 36px;
	}

	.cipl-pager,
	.cipl-lower .woocommerce-pagination {
		gap: 6px;
		margin-top: 24px;
	}
}

@media (max-width: 400px) {

	.cipl-title {
		font-size: 20px;
	}

	.cipl-main #cipl-main-img {
		max-height: 340px;
	}

	.cipl-sw-wrap {
		gap: 4px;
	}

	.cipl-sw {
		flex-basis: 78px;
		min-height: 98px;
		padding: 8px 4px 6px;
	}

	.cipl-sw.is-active {
		padding: 7px 3px 5px;
	}

	.cipl-sw img {
		width: 52px;
		height: 52px !important;
	}

	.cipl-swl {
		font-size: 11px;
	}

	.cipl-fit-row {
		gap: 6px;
	}

	.cipl-fit-row>span:first-child {
		width: 80px;
		font-size: 12px;
	}

	.cipl-fit-row>span:last-child {
		width: 38px;
		font-size: 12px;
	}

	.cipl-fit-bar {
		height: 8px;
	}
}

/* =========================================================
   PRINT
   ========================================================= */

@media print {

	.cipl-actions,
	.cipl-share,
	.cipl-related,
	.cipl-lower,
	.cipl-foot,
	.cipl-sw-nav,
	.cipl-pan {
		display: none !important;
	}
}