/* ARTEK Card – form & My Cards (inside theme pages) */
.artc-form { --artc: #1f3c88; --artc-mute: #667085; max-width: 560px; margin-left: auto; margin-right: auto; }
.artc-list, .artc-box { --artc: #1f3c88; --artc-line: #e4e7ec; --artc-mute: #667085; max-width: 760px; margin-left: auto; margin-right: auto; }
.artc-field { margin: 0 0 18px; }
.artc-form label { display: block; font-weight: 600; font-size: .92em; margin-bottom: 5px; }
.artc-form input[type=text], .artc-form input[type=tel], .artc-form input[type=email], .artc-form textarea {
	width: 100%; border: 1px solid #d0d5dd; border-radius: 10px; padding: 10px 12px; font-size: 16px; background: #fff; box-sizing: border-box;
}
.artc-form input:focus, .artc-form textarea:focus { outline: 2px solid color-mix(in srgb, var(--artc) 35%, transparent); border-color: var(--artc); }
.artc-form input[type=color] { width: 64px; height: 42px; padding: 2px; border: 1px solid #d0d5dd; border-radius: 10px; background: #fff; cursor: pointer; }
.artc-req { color: #d92d20; }
.artc-help { font-size: .85em; color: var(--artc-mute); margin: 6px 0 0; }
.artc-slug { display: flex; align-items: stretch; border: 1px solid #d0d5dd; border-radius: 10px; overflow: hidden; }
.artc-slug span { background: #f2f4f7; padding: 10px 10px 10px 12px; color: var(--artc-mute); white-space: nowrap; }
.artc-slug input[type=text] { border: 0 !important; border-radius: 0 !important; }
.artc-slug-fixed { font-weight: 700; font-size: 1.1em; margin: 0; }
.artc-logo-now { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.artc-logo-now img { width: 64px; height: 64px; object-fit: contain; border: 1px solid #e4e7ec; border-radius: 12px; padding: 4px; background: #fff; }
.artc-logo-now label { font-weight: 400; margin: 0; }

.artc-btn { display: inline-block; background: var(--artc, #1f3c88); color: #fff !important; border: 1px solid var(--artc, #1f3c88); border-radius: 10px; padding: 10px 18px; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none !important; cursor: pointer; }
.artc-btn:hover { filter: brightness(1.1); }
.artc-btn-ghost { background: #fff; color: var(--artc, #1f3c88) !important; }
.artc-btn-lg { padding: 14px 26px; font-size: 17px; }
.artc-link-danger { color: #d92d20 !important; font-size: 14px; margin-left: auto; }

.artc-box { border: 1px solid var(--artc-line); border-radius: 12px; padding: 16px 20px; margin-bottom: 18px; background: #fff; }
.artc-box ul { margin: 0; padding-left: 18px; }
.artc-error { border-color: #fda29b; background: #fef3f2; color: #912018; }
.artc-ok { border-color: #a6f4c5; background: #ecfdf3; color: #05603a; }
.artc-center { text-align: center; }

.artc-list { display: grid; gap: 18px; margin-bottom: 18px; }
.artc-item { border: 1px solid var(--artc-line); border-radius: 16px; overflow: hidden; background: #fff; }
.artc-item-top { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-top: 6px solid var(--artc-c); }
.artc-item-top h3 { margin: 0 0 2px; font-size: 1.2em; }
.artc-item-top p { margin: 0; color: var(--artc-mute); }
.artc-item-url { font-weight: 600; color: var(--artc-c) !important; }
.artc-item-logo { width: 64px; height: 64px; flex: none; border-radius: 14px; border: 1px solid var(--artc-line); display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 6px; }
.artc-item-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.artc-item-logo span { font-weight: 700; font-size: 22px; color: var(--artc-c); }
.artc-item-body { display: flex; gap: 20px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--artc-line); background: #fafbfc; }
.artc-item-body .artc-qr img { width: 110px; height: 110px; display: block; border-radius: 8px; }
.artc-item-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; flex: 1; }

/* Print-ready card */
.artc-item-print { padding: 16px 20px; border-top: 1px solid #e4e7ec; }
.artc-print-title { margin: 0 0 10px; font-weight: 600; font-size: 14px; color: #475467; }
.artc-print-preview { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.artc-print-preview img { width: 240px; max-width: 100%; height: auto; border-radius: 4px; box-shadow: 0 2px 10px rgba(16,24,40,.15); }

@media (max-width: 600px) {
	.artc-item-body { flex-direction: column; align-items: stretch; }
	.artc-item-body .artc-qr img { margin: 0 auto; }
}

/* Payment box */
.artc-pay { padding: 16px 20px; border-top: 1px solid #e4e7ec; }
.artc-status { margin: 0 0 10px; font-weight: 600; font-size: 15px; }
.artc-status-ok { color: #067647; }
.artc-status-wait { color: #b54708; }
.artc-status-bad { color: #b42318; }
.artc-pay-box { background: #f5f9ff; border: 1px solid #d6e6f7; border-radius: 14px; padding: 16px 18px; margin-bottom: 10px; }
.artc-pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.artc-pay-row label { display: block; font-weight: 600; font-size: 14px; }
.artc-pay-row small { font-weight: 400; color: #667085; }
.artc-pay-row select, .artc-pay-row input { display: block; width: 100%; margin-top: 5px; border: 1px solid #d0d5dd; border-radius: 10px; padding: 10px 12px; font-size: 16px; background: #fff; box-sizing: border-box; }
.artc-pay-note { margin: 10px 0 0; font-size: 13px; color: #667085; }
.artc-pay-error { margin: 8px 0 0; color: #b42318; font-weight: 600; font-size: 14px; }
.artc-pay-error:empty { display: none; }
.artc-pay-test { margin: 0 0 10px; display: inline-block; background: #fff3cd; color: #7a4b00; font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 6px; }
.artc-invoices { margin: 6px 0 0; font-size: 14px; color: #475467; }
@media (max-width: 600px) { .artc-pay-row { grid-template-columns: 1fr; } }

/* v1.7 form additions */
.artc-form label small { font-weight: 400; color: #667085; }
.artc-more { border: 1px solid #e4e7ec; border-radius: 12px; padding: 0 16px; margin: 0 0 18px; background: #fff; }
.artc-more summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: #0b6cb6; }
.artc-more[open] summary { margin-bottom: 4px; }
.artc-photo-now img { border-radius: 50% !important; object-fit: cover !important; padding: 0 !important; }
.artc-tpls { display: flex; gap: 14px; flex-wrap: wrap; }
.artc-tpl { cursor: pointer; font-weight: 400 !important; }
.artc-tpl input { position: absolute; opacity: 0; pointer-events: none; }
.artc-tpl-box { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 12px; border: 2px solid #e4e7ec; border-radius: 14px; background: #f9fafb; font-size: 14px; font-weight: 600; }
.artc-tpl-box svg { display: block; border-radius: 6px; box-shadow: 0 1px 4px rgba(16,24,40,.12); }
.artc-tpl input:checked + .artc-tpl-box { border-color: #0b6cb6; background: #eef5ff; }
.artc-tpl input:focus-visible + .artc-tpl-box { outline: 2px solid #0b6cb6; outline-offset: 2px; }
