.gtsc-wrap { display: flex; justify-content: center; margin: 14px 0 20px; clear: both; width: 100%; }
.gtsc-btn, .gtsc-dialog button, .gtsc-dialog a.gtsc-btn {
	display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 3px;
	background: #b5121b; color: #fff; font: 700 15px/1 Arial, Helvetica, sans-serif;
	padding: 12px 22px; cursor: pointer; text-decoration: none;
}
.gtsc-btn:hover, .gtsc-btn:focus-visible, .gtsc-dialog button:hover { background: #8d0e15; color: #fff; }
.gtsc-btn:focus-visible, .gtsc-dialog button:focus-visible { outline: 3px solid #111; outline-offset: 2px; }
.gtsc-btn[disabled] { opacity: .65; cursor: wait; }
.gtsc-overlay {
	position: fixed; inset: 0; z-index: 999999; background: rgba(0,0,0,.8);
	display: flex; align-items: center; justify-content: center; padding: 16px;
}
.gtsc-dialog {
	background: #fff; border-radius: 6px; padding: 16px; max-width: 100%; max-height: 100%;
	overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.gtsc-dialog img { display: block; max-width: 100%; max-height: 70vh; width: auto; height: auto; border: 1px solid #ddd; }
.gtsc-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.gtsc-dialog button.gtsc-close { background: #444; }
.gtsc-error { margin: 6px 0 0; color: #b5121b; font-size: 14px; text-align: center; width: 100%; }

/* Share bar and Download button on one row, button anchored right. */
.gtsc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 14px 0 20px; clear: both; width: 100%; }
.gtsc-row > :first-child { flex: 1 1 0; min-width: max-content; margin: 0 !important; padding-top: 0; padding-bottom: 0; }
.gtsc-row .gtsc-wrap { flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; width: auto; margin: 0 0 0 auto; clear: none; }
.gtsc-row .gtsc-btn { padding: 9px 18px; min-height: 34px; }
.gtsc-row .gtsc-error { text-align: right; margin: 0; }
