/*
 * Apresiasi Jurnalis — "Sedekah Kopi untuk Jurnalis" (QRIS via TriPay)
 * CSS widget apresiasi. Dipakai di halaman single post.
 */

/* ---------- Tombol ---------- */
.btn-appreciation {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background-color: #ea580c;
	color: #fff;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
	font-size: 14px;
	transition: all .3s ease;
	border: none;
	cursor: pointer;
}
.btn-appreciation:hover {
	background-color: #c2410c;
	color: #fff;
	transform: translateY(-1px);
}
.nomina-apresiasi-wrap {
    display:flex;
	margin: 22px 0;
	text-align: left;
}
.nomina-apresiasi-wrap .btn-appreciation {
	justify-content: center;
	color: #fff;
    flex:1;
}
.nomina-apresiasi-wrap .btn-appreciation:hover {
	color: #fff;
}

/* ---------- Overlay & Modal ---------- */
.apr-overlay {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2147483647;
	background: rgba(0, 0, 0, .28);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: flex-end;
	align-items: flex-end;
	-webkit-justify-content: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none; /* overlay transparan tidak boleh menangkap klik */
	transition: opacity .2s ease;
}
@media (min-width: 520px) {
	.apr-overlay { -webkit-align-items: center; align-items: center; }
}
.apr-overlay.apr-show { opacity: 1; pointer-events: auto; }

.apr-modal {
	background: #fff;
	border-radius: 20px 20px 0 0;
	width: 100%;
	max-width: 400px;
	max-height: 92vh;
	max-height: 92dvh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, .10);
	-webkit-transform: translateY(24px);
	transform: translateY(24px);
	transition: -webkit-transform .24s cubic-bezier(.16, 1, .3, 1);
	transition: transform .24s cubic-bezier(.16, 1, .3, 1);
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding-bottom: env(safe-area-inset-bottom, 0px);
	box-sizing: border-box;
}
.apr-modal::-webkit-scrollbar { display: none; }
@media (min-width: 520px) {
	.apr-modal {
		border-radius: 16px;
		-webkit-transform: scale(.96) translateY(8px);
		transform: scale(.96) translateY(8px);
		box-shadow: 0 12px 40px rgba(0, 0, 0, .14);
		margin: 16px;
		padding-bottom: 0;
	}
}
.apr-overlay.apr-show .apr-modal {
	-webkit-transform: translateY(0) scale(1);
	transform: translateY(0) scale(1);
}

.apr-handle {
	width: 36px;
	height: 4px;
	border-radius: 2px;
	background: #dde1e7;
	margin: 10px auto 0;
	display: block;
}
@media (min-width: 520px) { .apr-handle { display: none; } }

.apr-head {
	padding: 13px 16px 12px;
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
	-webkit-justify-content: space-between;
	justify-content: space-between;
	border-bottom: 1px solid #f2f3f5;
}
.apr-head-l {
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
	gap: 9px;
}
.apr-brand-icon {
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: #0072b9;
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-flex-shrink: 0;
	flex-shrink: 0;
}
.apr-app-name { font-size: 13px; font-weight: 700; color: #111827; margin: 0; line-height: 1.2; }
.apr-app-sub { font-size: 10px; color: #9ca3af; margin-top: 2px; line-height: 1; }

.apr-x {
	background: none;
	border: none;
	cursor: pointer;
	color: #c4c9d4;
	padding: 7px;
	border-radius: 8px;
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
	-webkit-justify-content: center;
	justify-content: center;
	transition: background .12s, color .12s;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	min-width: 36px;
	min-height: 36px;
	margin-right: -4px;
}
.apr-x:hover { color: #374151; background: #f3f4f6; }

.apr-body { padding: 16px 16px 20px; }

.apr-dots { display: -webkit-flex; display: flex; gap: 4px; margin-bottom: 14px; }
.apr-dot { height: 3px; -webkit-flex: 1; flex: 1; border-radius: 2px; background: #eef0f2; transition: background .25s; }
.apr-dot.on { background: #0072b9; }

.apr-label-sm {
	font-size: 10px;
	font-weight: 700;
	color: #9ca3af;
	letter-spacing: .6px;
	text-transform: uppercase;
	margin-bottom: 9px;
	display: block;
}

.apr-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 14px; }
.apr-amt {
	padding: 12px 6px;
	border: 1.5px solid #e9eaec;
	border-radius: 10px;
	background: #f9fafb;
	cursor: pointer;
	text-align: center;
	transition: border-color .12s, background .12s, color .12s, -webkit-transform .08s;
	transition: border-color .12s, background .12s, color .12s, transform .08s;
	font-size: 12.5px;
	font-weight: 700;
	color: #374151;
	line-height: 1.2;
	font-family: inherit;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	min-height: 44px;
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
	-webkit-justify-content: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
}
.apr-amt:active { -webkit-transform: scale(.95); transform: scale(.95); }
.apr-amt:hover { border-color: #0072b9; background: #ebf4fb; color: #0072b9; }
.apr-amt.sel { border-color: #0072b9; background: #0072b9; color: #fff; }

.apr-methods {
	display: -webkit-flex;
	display: flex;
	-webkit-flex-direction: column;
	flex-direction: column;
	gap: 5px;
	margin-bottom: 14px;
	/* Daftar channel panjang: batasi tinggi supaya bagian bawah (nominal + Bayar) tetap terlihat */
	max-height: 300px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding-right: 4px;
	margin-right: -4px;
	scrollbar-width: thin;
}
.apr-methods::-webkit-scrollbar { width: 4px; }
.apr-methods::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }
.apr-mcard {
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1.5px solid #e9eaec;
	border-radius: 11px;
	background: #fff;
	cursor: pointer;
	text-align: left;
	transition: border-color .12s, background .12s, -webkit-transform .08s;
	transition: border-color .12s, background .12s, transform .08s;
	width: 100%;
	font-family: inherit;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	min-height: 50px;
}
.apr-mcard:active { -webkit-transform: scale(.99); transform: scale(.99); }
.apr-mcard:hover { border-color: #0072b9; background: #ebf4fb; }
.apr-mcard.sel { border-color: #0072b9; background: #ebf4fb; }
.apr-mlogo {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-flex-shrink: 0;
	flex-shrink: 0;
	overflow: hidden;
}
.apr-mlogo-img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	background: #fff;
	padding: 4px;
	box-sizing: border-box;
}
.apr-minfo { -webkit-flex: 1; flex: 1; min-width: 0; overflow: hidden;flex-direction: column; display: flex; }
.apr-mname {
	font-size: 12.5px;
	font-weight: 600;
	color: #111827;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.apr-msub {
	font-size: 10px;
	color: #9ca3af;
	margin-top: 1px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.apr-mcheck {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1.5px solid #dde1e7;
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-flex-shrink: 0;
	flex-shrink: 0;
	transition: background .12s, border-color .12s;
	background: #fff;
}
.apr-mcard.sel .apr-mcheck { background: #0072b9; border-color: #0072b9; }
.apr-tick { display: none; }
.apr-mcard.sel .apr-tick { display: block; }

.apr-sep { height: 1px; background: #f2f3f5; margin: 12px 0; }
.apr-field { margin-bottom: 10px; }
.apr-lbl { display: block; font-size: 11px; font-weight: 600; color: #6b7280; margin-bottom: 5px; letter-spacing: .1px; }
.apr-inp {
	width: 100%;
	padding: 10px 12px;
	border: 1.5px solid #e9eaec;
	border-radius: 9px;
	font-size: 16px;
	color: #111827;
	outline: none;
	transition: border-color .12s, box-shadow .12s;
	box-sizing: border-box;
	font-family: inherit;
	background: #f9fafb;
	-webkit-appearance: none;
	appearance: none;
}
.apr-inp:focus { border-color: #0072b9; background: #fff; box-shadow: 0 0 0 3px rgba(0, 114, 185, .09); }
.apr-inp::-webkit-input-placeholder { color: #d1d5db; }
.apr-inp::placeholder { color: #d1d5db; }

.apr-btn-row1 {
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
	-webkit-justify-content: space-between;
	justify-content: space-between;
	margin-top: 14px;
	gap: 8px;
}
.apr-btn-row { display: -webkit-flex; display: flex; gap: 8px; margin-top: 14px; }
.apr-btn {
	-webkit-flex: 1;
	flex: 1;
	padding: 13px 16px;
	border: none;
	border-radius: 10px;
	background: #0072b9;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background .12s, -webkit-transform .08s;
	transition: background .12s, transform .08s;
	font-family: inherit;
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
	-webkit-justify-content: center;
	justify-content: center;
	gap: 6px;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	min-height: 46px;
	box-sizing: border-box;
	white-space: nowrap;
}
.apr-btn:active:not(:disabled) { -webkit-transform: scale(.97); transform: scale(.97); }
.apr-btn:hover:not(:disabled) { background: #005a94; }
.apr-btn:disabled { opacity: .38; cursor: not-allowed; }

.apr-btn-back {
	-webkit-flex: 0 0 auto;
	flex: 0 0 auto;
	padding: 13px 14px;
	background: #f3f4f6;
	color: #4b5563;
	border: none;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: background .12s, -webkit-transform .08s;
	transition: background .12s, transform .08s;
	font-family: inherit;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	min-height: 46px;
	white-space: nowrap;
}
.apr-btn-back:active { -webkit-transform: scale(.97); transform: scale(.97); }
.apr-btn-back:hover { background: #e5e7eb; }

.apr-cancel-link {
	background: none;
	border: none;
	cursor: pointer;
	color: #9ca3af;
	font-size: 13px;
	font-weight: 500;
	padding: 6px 2px;
	font-family: inherit;
	transition: color .12s;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	white-space: nowrap;
}
.apr-cancel-link:hover { color: #6b7280; }

.apr-note {
	font-size: 10px;
	color: #d1d5db;
	text-align: center;
	margin-top: 12px;
	line-height: 1.7;
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
	-webkit-justify-content: center;
	justify-content: center;
	gap: 4px;
}
.apr-terms { font-size: 10px; color: #c4c9d4; text-align: center; margin-top: 6px; line-height: 1.6; }
.apr-terms a { color: #c4c9d4; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.apr-terms a:hover { color: #6b7280; }

.apr-spin {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, .25);
	border-top-color: #fff;
	border-radius: 50%;
	-webkit-animation: apr-turn .6s linear infinite;
	animation: apr-turn .6s linear infinite;
}
@-webkit-keyframes apr-turn { to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } }
@keyframes apr-turn { to { transform: rotate(360deg); } }

.apr-err {
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 9px;
	padding: 10px 12px;
	font-size: 12px;
	color: #dc2626;
	margin-bottom: 10px;
	line-height: 1.5;
}

.apr-amount-row {
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
	-webkit-justify-content: space-between;
	justify-content: space-between;
	margin-bottom: 12px;
}
.apr-amount-row .apr-label-sm { margin-bottom: 0; }
.apr-amount-big { font-size: 15px; font-weight: 700; color: #0072b9; }

/* ---------- QR & status ---------- */
.apr-qr-wrap { text-align: center; padding: 6px 0 14px; }
.apr-qr-wrap img,
.apr-qr-wrap canvas {
	width: 200px;
	height: 200px;
	max-width: 100%;
	border: 1px solid #e9eaec;
	border-radius: 12px;
	background: #fff;
}
.apr-qr-meta { font-size: 12px; color: #6b7280; margin-top: 10px; line-height: 1.6; }
.apr-paid {
	width: 56px;
	height: 56px;
	margin: 6px auto 14px;
	border-radius: 50%;
	background: #16a34a;
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
	-webkit-justify-content: center;
	justify-content: center;
}
.apr-paid svg { color: #fff; }

/* ---------- Grup metode, redirect & VA ---------- */
.apr-mgroup {
	font-size: 10px;
	font-weight: 700;
	color: #9ca3af;
	letter-spacing: .6px;
	text-transform: uppercase;
	margin: 10px 0 6px;
}
.apr-methods .apr-mgroup:first-child { margin-top: 0; }

.apr-redirect {
	width: 56px;
	height: 56px;
	margin: 6px auto 14px;
	border-radius: 50%;
	background: #0072b9;
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
	-webkit-justify-content: center;
	justify-content: center;
}
.apr-redirect svg { color: #fff; }

.apr-va-box {
	border: 1.5px dashed #cbd5e1;
	border-radius: 12px;
	background: #f8fafc;
	padding: 14px 12px;
	text-align: center;
	margin-bottom: 12px;
}
.apr-va-label {
	font-size: 10px;
	font-weight: 700;
	color: #9ca3af;
	letter-spacing: .6px;
	text-transform: uppercase;
	margin: 0 0 6px;
}
.apr-va-number {
	font-size: 22px;
	font-weight: 800;
	color: #111827;
	letter-spacing: 1px;
	margin: 0 0 10px;
	word-break: break-all;
}
.apr-va-copy {
	-webkit-flex: 0 0 auto;
	flex: 0 0 auto;
	padding: 10px 18px;
	min-height: 40px;
	font-size: 12.5px;
}
.apr-va-steps {
	margin: 0 0 4px;
	padding: 0 0 0 18px;
	font-size: 12.5px;
	color: #374151;
	line-height: 1.7;
}
.apr-va-steps .apr-va-step-title {
	font-weight: 700;
	list-style: none;
	margin-left: -18px;
}

/* ---------- Polish mobile ---------- */
@media (max-width: 480px) {
	.nomina-apresiasi-wrap { margin: 16px 0; }
	.btn-appreciation { font-size: 13px; padding: 12px 14px; }
	.apr-body { padding: 14px 14px 18px; }
	.apr-head { padding: 12px 14px 11px; }
	.apr-amounts { gap: 6px; }
	.apr-amt { font-size: 12px; padding: 11px 4px; }
	.apr-btn {
		font-size: 12.5px;
		padding: 12px 10px;
		white-space: normal; /* biar "Bayar Rp 250.000" tidak terpotong di layar sempit */
	}
	.apr-btn-back { font-size: 12.5px; padding: 12px 12px; }
	.apr-amount-big { font-size: 14px; }
	.apr-methods { max-height: 260px; }
	.apr-qr-meta { font-size: 11.5px; }
}

@media (max-width: 360px) {
	.apr-amt { font-size: 11px; padding: 10px 3px; }
	.apr-btn { font-size: 12px; }
	.apr-mname { font-size: 12px; }
	.apr-lbl { font-size: 10.5px; }
	.apr-app-name { font-size: 12.5px; }
}
