/*
 * DOS Album Checkout — front-end styles
 * Author: Developer Rasel (https://developerrasel.com/)
 *
 * Every rule is scoped under .dosac so theme / other plugin CSS cannot leak in,
 * and nothing here can leak out. `all: initial` on the root cuts inherited theme styles.
 */

.dosac {
	all: initial;
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 8px;
	font-family: "Libre Baskerville", Baskerville, Georgia, "Times New Roman", serif;
	font-size: 16px;
	line-height: 1.4;
	color: #1d1a16;
	text-align: left;
	-webkit-text-size-adjust: 100%;
}

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

.dosac [hidden] {
	display: none !important;
}

.dosac svg {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
}

.dosac-notice {
	padding: 12px 16px;
	border: 1px solid #e6b3b3;
	border-radius: 4px;
	background: #fdecec;
	font-family: Georgia, serif;
	font-size: 15px;
	color: #9b1c1c;
}

/* ---------- layout ---------- */
.dosac .dosac-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 376px;
	gap: 24px;
	align-items: start;
}

.dosac .dosac-panel {
	background: #fbf6ee;
	border: 1px solid #eadfcd;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(60, 40, 10, 0.06);
}

.dosac .dosac-main {
	padding: 16px;
}

.dosac .dosac-form {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

/* ---------- labels & inputs ---------- */
.dosac .dosac-label {
	display: block;
	margin: 14px 0 6px;
	padding: 0;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: normal;
	text-transform: none;
	color: #1d1a16;
}

.dosac .dosac-card-panel .dosac-label {
	font-weight: 400;
	font-size: 15px;
	color: #3a342b;
}

.dosac .dosac-label.dosac-mt {
	margin-top: 18px;
}

.dosac .dosac-form > .dosac-label:first-child {
	margin-top: 0;
}

.dosac .dosac-req {
	color: #c4161c;
}

.dosac .dosac-field {
	position: relative;
	margin: 0;
}

.dosac .dosac-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	width: 20px;
	height: 20px;
	margin-top: -10px;
	color: #4a443a;
	pointer-events: none;
	z-index: 3;
}

.dosac .dosac-input,
.dosac .dosac-stripe {
	display: block;
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 14px 0 46px;
	border: 1px solid #dcd2c0;
	border-radius: 4px;
	background: #fffdf9;
	box-shadow: none;
	outline: 0;
	font-family: inherit;
	font-size: 15px;
	font-weight: 400;
	line-height: 44px;
	letter-spacing: normal;
	text-transform: none;
	color: #1d1a16;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.dosac .dosac-input--plain {
	padding-left: 14px;
}

.dosac .dosac-input::placeholder {
	color: #9a9183;
	opacity: 1;
}

.dosac .dosac-input:focus,
.dosac .dosac-stripe.is-focus {
	border-color: #d9822b;
	box-shadow: 0 0 0 3px rgba(217, 130, 43, 0.18);
}

.dosac .dosac-input.is-invalid,
.dosac .dosac-stripe.is-invalid {
	border-color: #c4161c;
}

.dosac .dosac-stripe {
	display: flex;
	align-items: center;
	line-height: normal;
}

/* PayPal Card Fields render their own wrapper + iframe inside our styled box.
 * 2.2.1: no overflow clipping, no forced styling of PayPal's wrapper, iframe always clickable. */
.dosac .dosac-stripe {
	position: relative;
	z-index: 2;
	display: block;
	height: 46px;
	padding: 0 14px 0 46px;
	overflow: visible;
	line-height: normal;
	cursor: text;
}

.dosac .dosac-stripe[data-el="cvv"] {
	padding-right: 42px;
}

.dosac .dosac-stripe,
.dosac .dosac-stripe > *,
.dosac .dosac-stripe iframe,
.dosac .dosac-stripe iframe:focus,
.dosac .dosac-stripe iframe:focus-visible {
	outline: none !important;
	-webkit-tap-highlight-color: transparent;
}

.dosac .dosac-stripe > * {
	box-shadow: none !important;
	background: transparent !important;
}

.dosac .dosac-stripe iframe {
	display: block;
	width: 100%;
	height: 44px;
	margin: 0;
	border: 0;
	background: transparent !important;
	box-shadow: none !important;
	color-scheme: light;
	pointer-events: auto !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.dosac .dosac-link {
	color: #b01212;
	text-decoration: underline;
}

.dosac .dosac-help {
	position: absolute;
	right: 12px;
	top: 50%;
	width: 22px;
	height: 22px;
	margin-top: -11px;
	color: #3a352d;
	cursor: help;
	pointer-events: none;
	z-index: 3;
}

.dosac .dosac-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.dosac input[type="number"] {
	-moz-appearance: textfield;
}
.dosac input[type="number"]::-webkit-outer-spin-button,
.dosac input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* ---------- product row ---------- */
.dosac .dosac-product {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 6px;
	border: 1px solid #eadfcd;
	border-radius: 6px;
	background: #f7efe3;
}

.dosac .dosac-cover {
	display: block;
	flex: 0 0 auto;
	width: 88px;
	height: 88px;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 3px;
	object-fit: cover;
	background: #e3d6c0;
}

.dosac .dosac-cover--sm {
	width: 84px;
	height: 84px;
}

.dosac .dosac-product-info {
	flex: 1 1 auto;
	min-width: 0;
}

.dosac .dosac-product-title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	color: #1d1a16;
}

.dosac .dosac-product-type {
	margin-top: 8px;
	font-size: 12.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #4a443a;
}

.dosac .dosac-product-price {
	flex: 0 0 auto;
	padding-right: 8px;
	font-size: 26px;
	font-weight: 700;
	color: #b01212;
}

/* ---------- donate box ---------- */
.dosac .dosac-donate-box {
	margin: 4px 0 0;
	padding: 10px;
	border: 1px solid #eadfcd;
	border-top: 0;
	border-radius: 0 0 6px 6px;
	background: #f7efe3;
}

.dosac .dosac-donate-row {
	display: grid;
	grid-template-columns: 1fr 181px;
	gap: 12px;
	margin-bottom: 10px;
}

.dosac .dosac-line {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 4px 0;
	font-size: 15px;
	color: #4a443a;
}

.dosac .dosac-line > span:last-child {
	min-width: 180px;
}

.dosac .dosac-line--total {
	margin-top: 6px;
	padding-top: 8px;
	border-top: 1px dashed #cfc3ae;
	font-weight: 700;
	color: #1d1a16;
	font-size: 16.5px;
}

/* ---------- buttons ---------- */
/* ---------- buttons (same style as DOS Community Login / DOS Community) ----------
 * Outline: 2px black border, black uppercase text, square.
 * Hover: fills #654638, white text, shine sweep, small lift, icon slides right. */
.dosac .dosac-btn {
	--dosac-h: 44px;
	position: relative;
	overflow: hidden;
	display: inline-flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: auto;
	height: var(--dosac-h);
	min-height: var(--dosac-h);
	margin: 0;
	padding: 0 26px;
	background: transparent;
	border: 2px solid #000;
	border-radius: 0;
	box-shadow: none;
	color: #000;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.05em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	vertical-align: middle;
	cursor: pointer;
	outline: 0;
	-webkit-appearance: none;
	appearance: none;
	transition: all 0.5s ease;
}

.dosac .dosac-btn:focus {
	background: transparent;
	border-color: #000;
	color: #000;
}

.dosac .dosac-btn > * {
	position: relative;
	z-index: 1;
}

.dosac .dosac-btn::after {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 60%;
	height: 100%;
	background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
	transform: skewX(-25deg);
	transition: left 0.7s ease;
	pointer-events: none;
}

.dosac .dosac-btn:hover:not([disabled])::after {
	left: 130%;
}

.dosac .dosac-btn:hover:not([disabled]),
.dosac .dosac-btn:active:not([disabled]) {
	background: #654638;
	border-color: #654638;
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.dosac .dosac-btn:focus-visible {
	outline: 2px solid #654638;
	outline-offset: 2px;
}

.dosac .dosac-btn[disabled] {
	opacity: 0.55;
	cursor: default;
}

.dosac .dosac-btn--donate {
	padding: 0 22px;
}

.dosac .dosac-btn--primary {
	display: flex;
	width: 100%;
	margin-top: 18px;
}

.dosac .dosac-btn--link {
	display: inline-flex;
	width: auto;
	padding: 0 34px;
}

.dosac .dosac-btn--primary[disabled] {
	cursor: progress;
}

.dosac .dosac-btn-text {
	display: inline-block;
	white-space: nowrap;
	color: inherit;
}

.dosac .dosac-btn-icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	color: inherit;
	transition: transform 0.4s ease;
}

.dosac .dosac-btn:hover:not([disabled]) .dosac-btn-icon {
	transform: translateX(8px);
}

.dosac .dosac-btn.is-loading .dosac-btn-icon {
	border: 3px solid rgba(0, 0, 0, 0.25);
	border-top-color: currentColor;
	border-radius: 50%;
	animation: dosac-spin 0.7s linear infinite;
	transform: none;
}
.dosac .dosac-btn.is-loading:hover .dosac-btn-icon {
	transform: none;
}
.dosac .dosac-btn.is-loading .dosac-btn-icon svg {
	display: none;
}

@keyframes dosac-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ---------- secure payment ---------- */
.dosac .dosac-heading {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 22px 0 12px;
	padding: 0;
	border: 0;
	font-family: inherit;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: normal;
	text-transform: none;
	color: #1d1a16;
}

.dosac .dosac-heading-icon {
	width: 22px;
	height: 22px;
	color: #b07a14;
}

.dosac .dosac-methods {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 14px;
}

.dosac .dosac-method {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 54px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid #dcd2c0;
	border-radius: 5px;
	background: #fffdf9;
	cursor: pointer;
	font-size: 16.5px;
	font-weight: 700;
	letter-spacing: normal;
	text-transform: none;
}

.dosac .dosac-method.is-active {
	border-color: #dca24f;
	background: #fbf0dd;
}

.dosac .dosac-method input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.dosac .dosac-radio {
	position: relative;
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border: 2px solid #cfc4b0;
	border-radius: 50%;
	background: #fff;
}

.dosac .dosac-method.is-active .dosac-radio {
	border: 6px solid #d9822b;
	background: #fff;
}

.dosac .dosac-method input:focus-visible ~ .dosac-radio {
	box-shadow: 0 0 0 3px rgba(217, 130, 43, 0.3);
}

.dosac .dosac-method-icon {
	width: 32px;
	height: 28px;
	color: #1d1a16;
}

.dosac .dosac-method-icon svg {
	fill: #1d1a16;
	stroke: #fbf0dd;
}

.dosac .dosac-paypal-word,
.dosac .dosac-brand--pp {
	font-family: Verdana, Arial, sans-serif;
	font-style: italic;
	font-weight: 800;
	font-size: 22px;
	letter-spacing: -0.5px;
}
.dosac .dosac-paypal-word i,
.dosac .dosac-brand--pp i {
	font-style: italic;
	color: #253b80;
}
.dosac .dosac-paypal-word b,
.dosac .dosac-brand--pp b {
	font-weight: 800;
	color: #179bd7;
}

.dosac .dosac-paypal-panel {
	margin-top: 4px;
	min-height: 60px;
}

.dosac .dosac-error {
	margin-top: 14px;
	padding: 10px 14px;
	border: 1px solid #e6b3b3;
	border-radius: 4px;
	background: #fdecec;
	font-size: 14.5px;
	color: #9b1c1c;
}

/* ---------- order summary ---------- */
.dosac .dosac-summary {
	overflow: hidden;
	background: #fbf6ee;
}

.dosac .dosac-summary-head {
	padding: 14px 16px;
	background: #111;
	text-align: center;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #fff;
}

.dosac .dosac-summary-body {
	padding: 16px 16px 20px;
}

.dosac .dosac-summary-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding-bottom: 16px;
	border-bottom: 1px solid #d9cfbb;
}

.dosac .dosac-summary-info {
	flex: 1 1 auto;
	min-width: 0;
}

.dosac .dosac-summary-title {
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.3;
}

.dosac .dosac-summary-type {
	margin-top: 4px;
	font-size: 14px;
	color: #6b6355;
}

.dosac .dosac-summary-price {
	font-size: 19px;
	font-weight: 700;
}

.dosac .dosac-sum-line {
	display: flex;
	justify-content: space-between;
	padding: 12px 0;
	border-bottom: 1px solid #d9cfbb;
	font-size: 19px;
}

.dosac .dosac-sum-line > span:last-child {
	font-weight: 700;
}

.dosac .dosac-sum-line--total {
	font-size: 34px;
	font-weight: 700;
	line-height: 1.15;
	color: #b01212;
}

.dosac .dosac-checks {
	display: block;
	margin: 18px 0 0;
	padding: 0 0 18px;
	border-bottom: 1px solid #d9cfbb;
	list-style: none;
}

.dosac .dosac-checks li {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 8px;
	padding: 0;
	font-size: 19px;
	list-style: none;
}
.dosac .dosac-checks li::before,
.dosac .dosac-checks li::marker {
	content: none;
}

.dosac .dosac-tick {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	color: #1fb43a;
}

.dosac .dosac-trust {
	display: flex;
	justify-content: space-around;
	gap: 12px;
	padding: 18px 0;
	border-bottom: 1px solid #d9cfbb;
}

.dosac .dosac-trust-item {
	display: flex;
	align-items: center;
	gap: 10px;
}
.dosac .dosac-trust-item + .dosac-trust-item {
	padding-left: 12px;
	border-left: 1px solid #cfc4ae;
}

.dosac .dosac-trust-icon {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	color: #222;
}

.dosac .dosac-trust-item b {
	display: block;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: 0.03em;
}
.dosac .dosac-trust-item small {
	display: block;
	margin-top: 2px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10px;
	letter-spacing: 0.02em;
	color: #4a443a;
}

.dosac .dosac-brands {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
}

.dosac .dosac-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 0;
	height: 40px;
	border-radius: 3px;
	background: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: 900;
	font-size: 15px;
}
.dosac .dosac-brand--visa {
	font-style: italic;
	font-size: 17px;
	color: #1a3fa6;
}
.dosac .dosac-brand--mc i {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #eb001b;
}
.dosac .dosac-brand--mc i + i {
	margin-left: -8px;
	background: #f79e1b;
	opacity: 0.92;
}
.dosac .dosac-brand--amex {
	background: #1d78c9;
	font-size: 12px;
	color: #fff;
}
.dosac .dosac-brand--disc {
	font-size: 8px;
	letter-spacing: 0;
	color: #222;
	border-bottom: 5px solid #f47a20;
}
.dosac .dosac-brand--pp {
	font-size: 12px;
}

/* ---------- success ---------- */
.dosac .dosac-success {
	padding: 40px 20px;
	text-align: center;
}
.dosac .dosac-success-icon {
	display: inline-block;
	width: 64px;
	height: 64px;
	margin-bottom: 14px;
	padding: 15px;
	border-radius: 50%;
	background: #1fb43a;
	color: #fff;
}
.dosac .dosac-success-title {
	margin: 0 0 8px;
	padding: 0;
	font-family: inherit;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: normal;
	text-transform: none;
	color: #1d1a16;
}
.dosac .dosac-success-text {
	margin: 0 0 20px;
	padding: 0;
	font-size: 16px;
	color: #4a443a;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
	.dosac .dosac-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.dosac .dosac-summary {
		order: -1;
	}
}

@media (max-width: 520px) {
	.dosac .dosac-donate-row {
		grid-template-columns: 1fr 120px;
	}
	.dosac .dosac-cols,
	.dosac .dosac-methods {
		grid-template-columns: 1fr;
	}
	.dosac .dosac-product-title {
		font-size: 17px;
	}
	.dosac .dosac-product-price {
		font-size: 21px;
	}
	.dosac .dosac-cover {
		width: 70px;
		height: 70px;
	}
	.dosac .dosac-line > span:last-child {
		min-width: 0;
	}
	.dosac .dosac-trust {
		flex-direction: column;
	}
	.dosac .dosac-trust-item + .dosac-trust-item {
		padding-left: 0;
		border-left: 0;
	}
}
