/* ============================================================
   product-page.css
   Product page layout details: prices heading, OOS badge,
   problem-report modal, other-sizes strip.
   Load on: product pages only (via print_html_headers extra_css).
   ============================================================ */

/* Offers heading row - h2 left, "report a problem" link right */
.prices-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5em;
}

.prices-heading h2 {
    margin: 0 auto 0 0;
}

/* "Report a problem" link */
.problem-link {
    font-size: 0.85em;
    color: #888;
    text-decoration: none;
    white-space: nowrap;
}

.problem-link:hover {
    color: #c00;
    text-decoration: underline;
}

/* Out-of-stock badge shown next to offer rows */
.oos-badge {
    display: inline-block;
    font-size: 0.8em;
    color: #a00;
    font-weight: bold;
    white-space: nowrap;
}

/* Problem report modal - backdrop */
#problem-modal-bg {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9000;
    align-items: center;
    justify-content: center;
}

#problem-modal-bg.open {
    display: flex;
}

/* Problem report modal - dialog */
#problem-modal {
    background: #fff;
    border-radius: 6px;
    padding: 1.5em;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: relative;
}

#problem-modal h3 {
    margin: 0 0 0.75em;
    font-size: 1.1em;
}

#problem-modal label {
    display: block;
    margin: 0.6em 0 0.2em;
    font-size: 0.9em;
    font-weight: bold;
}

#problem-modal select,
#problem-modal input[type=email],
#problem-modal textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.4em 0.5em;
    font-size: 0.9em;
    border: 1px solid #ccc;
    border-radius: 3px;
}

#problem-modal textarea {
    height: 80px;
    resize: vertical;
}

#problem-modal .form-note {
    font-size: 0.78em;
    color: #666;
    margin: 0.2em 0 0.6em;
}

#problem-modal .modal-buttons {
    display: flex;
    gap: 0.5em;
    margin-top: 1em;
    justify-content: flex-end;
}

#problem-modal .btn-submit {
    background: #c00;
    color: #fff;
    border: none;
    padding: 0.5em 1.2em;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9em;
}

#problem-modal .btn-submit:hover {
    background: #900;
}

#problem-modal .btn-cancel {
    background: #eee;
    color: #333;
    border: none;
    padding: 0.5em 1em;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9em;
}

/* Honeypot field - hidden off-screen */
#problem-modal .hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

/* Submission result message */
#problem-modal-msg {
    display: none;
    text-align: center;
    padding: 0.5em 0;
}

#problem-modal-msg.success {
    color: #060;
}

#problem-modal-msg.error {
    color: #c00;
}

/* Other sizes / variant strip */
.other-sizes {
    margin: 0.75em 0 0;
    font-size: 0.95em;
    color: #444;
    font-style: italic;
}

.other-sizes__link {
    color: inherit;
    font-style: normal;
    font-weight: bold;
    text-decoration: underline;
    white-space: nowrap;
}

.other-sizes__link:hover {
    color: #c00;
}

/* Product review block - shared structural spacing only */
.product__reviews {
	margin-top: 1.25rem;
}

.product__reviews-cta {
	margin-top: 1rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	align-items: center;
}
/* Product page secondary content row - shared structural layout only */
.product__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
}

/* Product page lower content rows - shared structural layout only */
.product__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
}

.product__content-row {
	display: block;
	width: 100%;
	margin-top: 1.5rem;
}

.product__content-col {
	width: 100%;
	min-width: 0;
}

.product__reviews {
	margin-top: 0;
}