/*
 * Hi Kitchen Gifts — functional plugin styles.
 * Matches the Astra theme tokens: Poppins 15px body, gold #C4A740 pill
 * buttons (hover #A8892E), headings #2b2f38, body text #5d6167.
 */

/* Buttons — mirror the theme's .ast-button (50px pill, 15px Poppins) */
.hk-gifts-btn {
	display: inline-block;
	background: #C4A740;
	color: #fff !important;
	border: 2px solid #C4A740;
	border-radius: 50px;
	padding: 14px 32px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.hk-gifts-btn:hover,
.hk-gifts-btn:focus {
	background: #A8892E;
	border-color: #A8892E;
	color: #fff !important;
}

.hk-gifts-btn-small {
	padding: 10px 24px;
	font-size: 14px;
}

.hk-gifts-btn-outline {
	background: transparent;
	color: #C4A740 !important;
}

.hk-gifts-btn-outline:hover,
.hk-gifts-btn-outline:focus {
	background: #C4A740;
	color: #fff !important;
}

/* Panels — shared card container for all Gifts forms */
.hk-gifts-panel {
	background: #fff;
	border: 1px solid #e8e5de;
	border-radius: 12px;
	padding: 28px;
	margin: 0 0 24px;
}

.hk-gifts-panel-title {
	font-size: 18px;
	font-weight: 600;
	color: #2b2f38;
	margin: 0 0 18px;
}

.hk-gifts-form-actions {
	margin: 4px 0 0;
}

/* Form fields */
.hk-gifts-corporate-form,
.hk-gifts-registry-form,
.hk-gifts-registry-intro {
	max-width: 760px;
}

.hk-gifts-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px 20px;
}

@media (max-width: 640px) {
	.hk-gifts-form-grid {
		grid-template-columns: 1fr;
	}
}

.hk-gifts-corporate-form label,
.hk-gifts-registry-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 500;
	color: #2b2f38;
}

.hk-req {
	color: #C4A740;
}

.hk-gifts-corporate-form input[type="text"],
.hk-gifts-corporate-form input[type="email"],
.hk-gifts-corporate-form input[type="tel"],
.hk-gifts-corporate-form input[type="number"],
.hk-gifts-corporate-form select,
.hk-gifts-corporate-form textarea,
.hk-gifts-registry-form input[type="text"],
.hk-gifts-registry-form input[type="date"],
.hk-gifts-registry-form input[type="number"],
.hk-gifts-registry-form select,
.hk-gifts-registry-form textarea {
	width: 100%;
	padding: 12px 16px;
	font-family: inherit;
	font-size: 15px;
	color: #5d6167;
	border: 1px solid #ddd8cc;
	border-radius: 8px;
	background: #fff;
}

.hk-gifts-corporate-form input:focus,
.hk-gifts-corporate-form select:focus,
.hk-gifts-corporate-form textarea:focus,
.hk-gifts-registry-form input:focus,
.hk-gifts-registry-form select:focus,
.hk-gifts-registry-form textarea:focus {
	border-color: #C4A740;
	outline: none;
	box-shadow: 0 0 0 3px rgba(196, 167, 64, 0.15);
}

.hk-gifts-corporate-form .hk-hp-field {
	position: absolute !important;
	left: -9999px !important;
	height: 1px;
	overflow: hidden;
}

.hk-gifts-hint {
	color: #5d6167;
	font-size: 13px;
	margin: -8px 0 16px;
}

/* Notices */
.hk-gifts-notice {
	padding: 14px 20px;
	border-radius: 8px;
	margin: 0 0 24px;
	font-size: 15px;
}

.hk-gifts-notice-success {
	background: #eaf7ea;
	border: 1px solid #9fd49f;
	color: #1e4620;
}

.hk-gifts-notice-error {
	background: #fdeeee;
	border: 1px solid #eaa;
	color: #6b1a1a;
}

/* Checkout — gift options box (wrap + registry delivery) */
.hk-gifts-wrap-option {
	margin: 24px 0 0;
	padding: 20px 24px;
	border: 1px solid #e8e5de;
	border-radius: 12px;
	background: #faf8f3;
}

.hk-gifts-wrap-option h3 {
	margin: 0 0 12px;
	font-size: 17px;
	font-weight: 600;
	color: #2b2f38;
}

.hk-gifts-wrap-option .checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-size: 15px;
	color: #5d6167;
}

.hk-gifts-wrap-option .hk-gifts-hint {
	margin: 8px 0 0;
}

.hk-gifts-wrap-message-row {
	margin-top: 12px;
}

.hk-gifts-wrap-message-row label {
	font-size: 14px;
	font-weight: 500;
	color: #2b2f38;
}

.hk-gifts-wrap-message-row textarea {
	width: 100%;
	border-radius: 8px;
	border: 1px solid #ddd8cc;
	padding: 12px 16px;
	font-size: 15px;
}

/* Voucher product fields */
.hk-gifts-voucher-fields {
	margin: 0 0 20px;
	padding: 20px 24px;
	border: 1px solid #e8e5de;
	border-radius: 12px;
	background: #faf8f3;
}

.hk-gifts-voucher-fields label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: #2b2f38;
	margin-bottom: 6px;
}

.hk-gifts-voucher-fields input,
.hk-gifts-voucher-fields textarea {
	width: 100%;
	padding: 12px 16px;
	font-size: 15px;
	border: 1px solid #ddd8cc;
	border-radius: 8px;
}

/* Voucher links on thank-you / My Account */
.hk-gifts-voucher-links {
	margin: 24px 0;
	padding: 20px 24px;
	border: 1px solid #e8e5de;
	border-radius: 12px;
	background: #faf8f3;
}

.hk-gifts-voucher-links h2 {
	font-size: 20px;
	margin: 0 0 12px;
}

.hk-gifts-voucher-links ul {
	margin: 0 0 12px;
	padding-left: 20px;
}

.hk-gifts-voucher-links li {
	font-size: 15px;
	margin-bottom: 6px;
}

/* Gift registry — product page button.
   Sits inside form.cart; flex-basis pushes it onto its own row, while the
   button itself must stay content-width whatever the theme does to
   form.cart .button elements. */
.hk-gifts-registry-add {
	margin: 14px 0 0;
	flex-basis: 100%;
	width: 100%;
}

.woocommerce div.product form.cart .button.hk-gifts-registry-add-btn,
.hk-gifts-registry-add-btn.button {
	width: auto !important;
	max-width: 100%;
	display: inline-block !important;
	float: none !important;
	background: transparent !important;
	color: #C4A740 !important;
	border: 2px solid #C4A740 !important;
	border-radius: 50px !important;
	/* Add to cart runs ~10px vertical padding; 8px + 2px border matches its height. */
	padding: 8px 24px !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	height: auto !important;
	min-height: 0 !important;
}

.woocommerce div.product form.cart .button.hk-gifts-registry-add-btn:hover,
.hk-gifts-registry-add-btn.button:hover {
	background: #C4A740 !important;
	color: #fff !important;
	border-color: #C4A740 !important;
	transform: none;
	box-shadow: none;
}

.hk-gifts-registry-feedback {
	display: inline-block;
	margin-left: 12px;
	font-size: 14px;
	color: #1e4620;
}

/* Gift registry — public page */
.hk-registry-public {
	max-width: 1200px;
	margin: 0 auto;
	padding: 48px 20px 72px;
}

.hk-registry-head {
	text-align: center;
	margin-bottom: 40px;
}

.hk-registry-head h1 {
	font-size: 40px;
	margin: 0 0 8px;
}

@media (max-width: 640px) {
	.hk-registry-head h1 {
		font-size: 28px;
	}
}

.hk-registry-eyebrow {
	font-size: 13px;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: #C4A740;
	font-weight: 500;
	margin-bottom: 8px;
}

.hk-registry-date {
	color: #5d6167;
	font-size: 15px;
}

.hk-registry-greeting {
	font-style: italic;
	color: #5d6167;
	font-size: 16px;
	max-width: 620px;
	margin: 16px auto 0;
}

.hk-registry-closed {
	display: inline-block;
	margin-top: 16px;
	background: #fdeeee;
	border: 1px solid #eaa;
	color: #6b1a1a;
	padding: 10px 24px;
	border-radius: 50px;
	font-size: 14px;
}

.hk-registry-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

@media (max-width: 1024px) {
	.hk-registry-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.hk-registry-grid {
		grid-template-columns: 1fr;
	}
}

.hk-registry-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: #fff;
	border: 1px solid #e8e5de;
	border-radius: 12px;
	padding: 24px 20px;
}

.hk-registry-item img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.hk-registry-item h3 {
	font-size: 16px;
	font-weight: 600;
	margin: 14px 0 4px;
}

.hk-registry-item h3 a {
	color: #2b2f38;
	text-decoration: none;
}

.hk-registry-item-done {
	opacity: 0.6;
}

.hk-registry-price {
	margin: 0 0 6px;
	font-size: 15px;
	color: #5d6167;
	flex: 1;
}

.hk-registry-count {
	font-size: 13px;
	color: #5d6167;
	margin-bottom: 14px;
}

.hk-registry-item .hk-gift-card-btn,
.hk-registry-item .hk-gifts-btn {
	padding: 10px 26px;
	font-size: 14px;
}

.hk-registry-footnote {
	text-align: center;
	color: #5d6167;
	font-size: 14px;
	margin-top: 32px;
}

.hk-registry-empty {
	text-align: center;
	color: #5d6167;
	padding: 48px 0;
}

/* Gift registry — My Account management */
.hk-gifts-share-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.hk-gifts-share-row input {
	flex: 1 1 260px;
	min-width: 0;
	padding: 12px 16px;
	font-size: 14px;
	color: #5d6167;
	border: 1px solid #ddd8cc;
	border-radius: 8px;
	background: #faf8f3;
}

.hk-gifts-items-table {
	width: 100%;
	border-collapse: collapse;
	margin: 4px 0 8px;
	font-size: 15px;
}

.hk-gifts-items-table th {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #5d6167;
}

.hk-gifts-items-table th,
.hk-gifts-items-table td {
	text-align: left;
	padding: 12px 8px;
	border-bottom: 1px solid #efece4;
}

.hk-gifts-items-table input[type="number"] {
	width: 80px;
}

.hk-gifts-items-table label {
	font-weight: 400 !important;
	font-size: 14px !important;
	color: #5d6167 !important;
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	margin: 0 !important;
}

/* Registry buy form quantity picker — stacked so the qty row and button
   each get full breathing room inside the card. */
.hk-registry-buy-form {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	width: 100%;
}

.hk-registry-qty {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #5d6167;
}

.hk-registry-qty select {
	min-width: 72px;
	padding: 8px 12px;
	border: 1px solid #ddd8cc;
	border-radius: 8px;
	font-size: 15px;
	color: #2b2f38;
	background: #fff;
	cursor: pointer;
}

.hk-registry-qty select:focus {
	border-color: #C4A740;
	outline: none;
	box-shadow: 0 0 0 3px rgba(196, 167, 64, 0.15);
}
