/*
 * International Shipping Crate configurator styles.
 * Same warm wood-tone palette as the other configurators, own "bmdc-"
 * prefix.
 */

.bmdc-page { direction: rtl; padding: 40px 16px 80px; max-width: 1100px; margin: 0 auto; }
.bmdc-title { font-size: 32px; color: #4a3323; margin-bottom: 8px; line-height: 1.2; }
.bmdc-subtitle { color: #7a6a5a; margin-bottom: 32px; max-width: 70ch; line-height: 1.6; }

.bmdc-layout { display: flex; gap: 40px; align-items: flex-start; }
.bmdc-visual-col { flex: 0 0 320px; position: sticky; top: 20px; }
.bmdc-visual-frame { background: #fbf8f3; border: 1px solid #e4d9c9; border-radius: 12px; padding: 20px; text-align: center; }
.bmdc-schematic { width: 100%; height: auto; max-width: 280px; }
.bmdc-schematic-label { margin-top: 6px; font-size: 12px; color: #a08f7a; }

.bmdc-summary { margin: 16px 0 0; text-align: right; font-size: 13px; color: #4a3323; display: grid; gap: 6px; }
.bmdc-summary > div { display: block; border-top: 1px solid #ece3d6; padding-top: 6px; }
.bmdc-summary dt { color: #7a6a5a; font-size: 12px; }
.bmdc-summary dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.4; }

.bmdc-form-col { flex: 1 1 auto; min-width: 0; }

.bmdc-step { background: #fff; border: 1px solid #ece3d6; border-radius: 10px; padding: 20px; margin-bottom: 16px; }
.bmdc-step-title { font-size: 17px; color: #4a3323; margin: 0 0 14px; }

.bmdc-field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.bmdc-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #6b5a48; margin-bottom: 10px; }
.bmdc-field input, .bmdc-field select { padding: 8px 10px; border: 1px solid #d8cbb8; border-radius: 6px; font-size: 14px; background: #fff; max-width: 220px; min-width: 110px; }
.bmdc-range-hint { color: #a08f7a; font-size: 12px; font-weight: normal; }
.bmdc-hint-text { color: #a08f7a; font-size: 13px; margin: 6px 0 0; line-height: 1.5; }
.bmdc-hint-center { text-align: center; margin: 0 0 14px; }

.bmdc-radio-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: #4a3323; }
.bmdc-radio-col label { display: flex; align-items: center; gap: 8px; cursor: pointer; }

.bmdc-field-invalid input, .bmdc-field-invalid select { border-color: #c0392b; }
.bmdc-field-error-msg { color: #c0392b; font-size: 12px; margin: 2px 0 8px; flex-basis: 100%; }

.bmdc-price-section { text-align: center; background: #f3e9db; }
.bmdc-price-errors { background: #fbeaea; color: #a33; border: 1px solid #e5b8b8; border-radius: 6px; padding: 10px 14px; margin-bottom: 14px; font-size: 13px; text-align: right; }
.bmdc-notice { background: #fff7e0; color: #6b5420; border: 1px solid #ecd9a0; border-radius: 6px; padding: 10px 14px; margin-bottom: 14px; font-size: 13px; text-align: right; line-height: 1.5; }
.bmdc-price-display { font-size: 15px; color: #4a3323; margin-bottom: 10px; }
#bmdc-price-unit, #bmdc-price-total { font-size: 26px; margin-inline-start: 8px; color: #6b4a34; font-variant-numeric: tabular-nums; }
.bmdc-price-total-row #bmdc-price-total { font-size: 20px; }

.bmdc-btn { padding: 12px 28px; border-radius: 8px; font-size: 15px; font-weight: bold; cursor: pointer; border: none; }
.bmdc-btn-primary { background: #6b4a34; color: #fff; }
.bmdc-btn-primary:hover { background: #573a28; }
.bmdc-btn-primary:disabled { background: #cbbba9; cursor: not-allowed; }

.bmdc-section-title { font-size: 22px; color: #4a3323; margin: 48px 0 16px; }
.bmdc-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.bmdc-figure { margin: 0; background: #fff; border: 1px solid #ece3d6; border-radius: 10px; overflow: hidden; }
.bmdc-figure img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.bmdc-figure figcaption { padding: 10px 12px; font-size: 13px; color: #6b5a48; line-height: 1.4; }

.bmdc-info { max-width: 760px; }
.bmdc-faq { background: #fff; border: 1px solid #ece3d6; border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; }
.bmdc-faq summary { cursor: pointer; font-weight: 600; color: #4a3323; }
.bmdc-faq p { color: #6b5a48; line-height: 1.7; margin: 10px 0 2px; }

@media ( max-width: 768px ) {
	.bmdc-layout { flex-direction: column; }
	.bmdc-visual-col { position: static; width: 100%; flex-basis: auto; }
	.bmdc-title { font-size: 26px; }
}

/* Single-H1 hero: the template's own H1 is the page heading, the theme hero is a div here. */
.page-header-image div.entry-title.bmd-hero-title { position: absolute; margin: 0; bottom: 0; right: 0; color: #8d5242; font-weight: 700; font-size: 38px; line-height: 1.1; padding: 13px 20px 16px; background: #fff; }

/* ISPM 15 declaration block */
.bmdc-cert { background: #fbf8f3; border: 1px solid #e4d9c9; border-radius: 12px; padding: 22px; margin-top: 48px; max-width: 760px; }
.bmdc-cert .bmdc-section-title { margin: 0 0 10px; }
.bmdc-cert p { color: #6b5a48; line-height: 1.7; margin: 0 0 12px; }
.bmdc-cert-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 8px; }
.bmdc-btn-link { display: inline-block; padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: bold; text-decoration: none; background: #6b4a34; color: #fff; }
.bmdc-btn-link:hover { background: #573a28; color: #fff; }
.bmdc-btn-link.is-secondary { background: #fff; color: #6b4a34; border: 1px solid #d8cbb8; }
.bmdc-btn-link.is-secondary:hover { background: #f3e9db; color: #573a28; }
