.idcg-generator {
	max-width: 760px;
	margin: 0 0 40px;
	font-size: 15px;
}

.idcg-login-notice {
	padding: 20px;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	text-align: center;
}

.idcg-field-group {
	margin-bottom: 22px;
}

.idcg-field-group > label,
.idcg-group-label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}

.idcg-two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 20px;
}

.idcg-two-col > div {
	margin-bottom: 0;
}

.idcg-generator input[type="text"],
.idcg-generator input[type="date"],
.idcg-generator input[type="file"] {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
}

.idcg-background-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 150px, 1fr ) );
	gap: 12px;
}

.idcg-background-option {
	position: relative;
	display: block;
	cursor: pointer;
	border: 2px solid transparent;
	border-radius: 6px;
	overflow: hidden;
	text-align: center;
	font-size: 12px;
}

.idcg-background-option img {
	display: block;
	width: 100%;
	height: 90px;
	object-fit: cover;
}

.idcg-background-option span {
	display: block;
	padding: 4px;
}

.idcg-background-option input {
	position: absolute;
	top: 6px;
	left: 6px;
}

.idcg-background-option input:checked ~ img,
.idcg-background-option:has( input:checked ) {
	border-color: #d63384;
}

.idcg-photo-preview img {
	margin-top: 10px;
	max-width: 150px;
	max-height: 150px;
	border-radius: 6px;
	object-fit: cover;
	border: 1px solid #ddd;
}

.idcg-button {
	display: inline-block;
	background: #d63384;
	color: #fff;
	border: none;
	padding: 10px 22px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}

.idcg-button:hover {
	background: #b3286d;
	color: #fff;
}

.idcg-button-small {
	padding: 6px 12px;
	font-size: 12px;
}

.idcg-button-danger {
	background: #b3261e;
}

.idcg-button-danger:hover {
	background: #8f1e17;
}

.idcg-button-outline {
	background: #fff;
	color: #d63384;
	border: 1px solid #d63384;
}

.idcg-button-outline:hover {
	background: #fdf1f7;
	color: #b3286d;
}

.idcg-result-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.idcg-share-menu {
	position: absolute;
	z-index: 100000;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	box-shadow: 0 6px 20px rgba( 0, 0, 0, 0.15 );
	padding: 6px;
	min-width: 160px;
	display: flex;
	flex-direction: column;
}

.idcg-share-link {
	display: block;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 13px;
	text-align: left;
	text-decoration: none;
	color: #333;
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
}

.idcg-share-link:hover {
	background: #f5f5f5;
}

.idcg-share-fb::before,
.idcg-share-x::before,
.idcg-share-wa::before,
.idcg-share-li::before,
.idcg-share-pin::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: 8px;
}

.idcg-share-fb::before { background: #1877f2; }
.idcg-share-x::before { background: #000; }
.idcg-share-wa::before { background: #25d366; }
.idcg-share-li::before { background: #0a66c2; }
.idcg-share-pin::before { background: #e60023; }

.idcg-share-copy {
	border-top: 1px solid #eee;
	margin-top: 4px;
	padding-top: 10px;
	color: #666;
}

.idcg-tooltip {
	position: absolute;
	z-index: 100001;
	background: #333;
	color: #fff;
	font-size: 12px;
	padding: 5px 10px;
	border-radius: 4px;
	white-space: nowrap;
}

.idcg-spinner {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 3px solid #eee;
	border-top-color: #d63384;
	border-radius: 50%;
	vertical-align: middle;
	margin-left: 10px;
	animation: idcg-spin 0.8s linear infinite;
}

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

.idcg-message {
	padding: 10px 14px;
	border-radius: 4px;
	margin-top: 10px;
}

.idcg-message-error {
	background: #fbeaea;
	color: #8f1e17;
	border: 1px solid #f3c6c3;
}

.idcg-message-success {
	background: #eaf6ec;
	color: #256029;
	border: 1px solid #c3e6c9;
}

.idcg-result {
	margin-top: 20px;
	padding: 16px;
	border: 1px solid #eee;
	border-radius: 6px;
}

.idcg-result img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	display: block;
	margin-bottom: 12px;
}

.idcg-my-cards {
	max-width: 900px;
}

.idcg-cards-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 200px, 1fr ) );
	gap: 16px;
}

.idcg-card-item {
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	overflow: hidden;
}

.idcg-card-item img {
	display: block;
	width: 100%;
	height: 126px;
	object-fit: cover;
}

.idcg-card-meta {
	padding: 8px 10px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.idcg-card-meta span {
	color: #666;
	font-size: 12px;
}

.idcg-card-actions {
	padding: 0 10px 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.idcg-card-actions .idcg-button {
	flex: 1 1 auto;
	text-align: center;
}

.idcg-empty-notice {
	color: #666;
	font-style: italic;
}
