.appg-checkout {
	--appg-border: #dcdcde;
	--appg-muted: #646970;
	--appg-surface: #f6f7f7;
	--appg-accent: #2271b1;
	margin-top: 12px;
}

.appg-description,
.appg-instructions {
	margin: 0 0 14px;
}

.appg-instructions > :last-child {
	margin-bottom: 0;
}

.appg-video-link a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	text-decoration: underline;
}

.appg-video-link a::before {
	content: "▶";
	font-size: 0.8em;
}

.appg-methods {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 8px;
	border: 0;
	padding: 0;
	margin: 0 0 14px;
}

.appg-methods legend {
	font-weight: 600;
	margin-bottom: 8px;
}

.appg-method-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid var(--appg-border);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
}

.appg-method-option:has(input:checked) {
	border-color: var(--appg-accent);
	box-shadow: 0 0 0 1px var(--appg-accent);
}

.appg-method-panel {
	padding: 14px;
	margin-bottom: 14px;
	border: 1px solid var(--appg-border);
	border-radius: 8px;
	background: var(--appg-surface);
}

.appg-method-panel[hidden],
.appg-wallet-card[hidden] {
	display: none !important;
}

.appg-details {
	margin: 0;
}

.appg-detail-row {
	display: grid;
	grid-template-columns: minmax(110px, 0.8fr) minmax(180px, 1.5fr);
	gap: 8px 16px;
	padding: 9px 0;
	border-bottom: 1px solid var(--appg-border);
}

.appg-detail-row:last-child {
	border-bottom: 0;
}

.appg-detail-row dt {
	font-weight: 600;
}

.appg-detail-row dd {
	margin: 0;
	min-width: 0;
}

.appg-copy-value,
.appg-wallet-address {
	word-break: break-all;
	white-space: normal;
}

.appg-wallet-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
	padding: 14px;
	border: 1px solid var(--appg-border);
	border-radius: 8px;
	background: #fff;
}

.appg-wallet-card > div:first-child {
	display: flex;
	gap: 8px;
	align-items: baseline;
}

.appg-wallet-card > div:first-child span {
	color: var(--appg-muted);
}

.appg-wallet-card > .appg-copyable-value {
	grid-column: 1;
}

.appg-wallet-qr {
	grid-column: 2;
	grid-row: 1 / span 3;
	width: 150px;
	height: 150px;
	object-fit: contain;
	background: #fff;
	border: 1px solid var(--appg-border);
	border-radius: 6px;
	padding: 5px;
}

.appg-proof-field {
	margin-top: 14px;
}

.appg-proof-field > label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.appg-proof-field input[type="file"] {
	display: block;
	width: 100%;
	padding: 9px;
	border: 1px dashed var(--appg-border);
	border-radius: 6px;
	background: #fff;
}

.appg-help {
	display: block;
	margin-top: 5px;
	color: var(--appg-muted);
}

.appg-upload-status {
	min-height: 20px;
	margin-top: 6px;
	font-weight: 600;
}

.appg-proof-preview {
	margin-top: 10px;
}

.appg-proof-preview img {
	display: block;
	max-width: 220px;
	max-height: 220px;
	object-fit: contain;
	border: 1px solid var(--appg-border);
	border-radius: 6px;
	padding: 4px;
	background: #fff;
}

.appg-method-select {
	margin-bottom: 16px;
}

.appg-block-checkout select,
.appg-block-checkout input[type="text"] {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid #50575e;
	border-radius: 4px;
	background: #fff;
}

.appg-block-checkout .wc-block-components-text-input {
	margin-bottom: 16px;
}

.appg-block-checkout .wc-block-components-text-input label {
	display: block;
	position: static;
	transform: none;
	font-size: inherit;
	font-weight: 600;
	margin-bottom: 6px;
}

.appg-copyable-value {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--appg-border);
	border-radius: 6px;
	background: #fff;
	color: inherit;
	font: inherit;
	line-height: 1.4;
	text-align: left;
	cursor: copy;
	transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.appg-copyable-value:hover,
.appg-copyable-value:focus-visible {
	border-color: var(--appg-accent);
	box-shadow: 0 0 0 1px var(--appg-accent);
	outline: 0;
}

.appg-copyable-value.is-copied {
	border-color: #008a20;
	box-shadow: 0 0 0 1px #008a20;
	background: #f0fff4;
}

.appg-copyable-value .appg-copy-value {
	min-width: 0;
	padding: 0;
	background: transparent;
	color: inherit;
	word-break: break-all;
	white-space: normal;
}

.appg-wallet-address {
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: normal;
}

.appg-copy-affordance {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	color: var(--appg-muted);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.appg-copyable-value.is-copied .appg-copy-affordance {
	color: #008a20;
}

.appg-copy-icon,
.appg-copy-icon svg {
	display: block;
	width: 17px;
	height: 17px;
}

.appg-field-without-label {
	margin-top: 0;
}

.appg-order-summary {
	margin-top: 24px;
}


body.appg-video-modal-open {
	overflow: hidden;
}

.appg-video-modal[hidden] {
	display: none !important;
}

.appg-video-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.appg-video-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.78);
}

.appg-video-dialog {
	position: relative;
	z-index: 1;
	width: min(960px, 100%);
	max-height: calc(100vh - 48px);
	overflow: auto;
	border-radius: 10px;
	background: #111;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.appg-video-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 12px 10px 16px;
	color: #fff;
}

.appg-video-title {
	font-size: 15px;
	line-height: 1.4;
}

.appg-video-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #fff;
	font-size: 30px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
}

.appg-video-close:hover,
.appg-video-close:focus-visible {
	background: rgba(255, 255, 255, 0.14);
	outline: 2px solid #fff;
	outline-offset: 1px;
}

.appg-video-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.appg-video-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.appg-video-external {
	display: block;
	padding: 11px 16px 13px;
	color: #fff;
	font-size: 13px;
	text-align: right;
}

@media (max-width: 520px) {
	.appg-detail-row {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.appg-wallet-card {
		grid-template-columns: 1fr;
	}

	.appg-wallet-qr {
		grid-column: 1;
		grid-row: auto;
	}

	.appg-video-modal {
		padding: 12px;
	}

	.appg-video-dialog {
		max-height: calc(100vh - 24px);
	}
}

