/* =============================================================================
   Product detail page - laptop widths (841px to 1199px).

   style.css lays the page out as three floated columns: the picture
   (.productdetailApparelleftarea, 40%), the buy box
   (.productdetailApparelrightarea, 30%) and the description / offer box
   (.OfferZone, ~29%, floated right). Its "max-width: 1100px" block widens the
   buy box and the offer box to 35% each but leaves the picture at 40%, so the
   three add up to 110%: the offer box drops under the other two and sits on the
   right with a blank area beside it. Below 840px responsive.css already stacks
   the offer box full width, so only this range needs fixing.

   Layout only - no fonts or colours. Linked by the shop*_03.aspx pages.
   ============================================================================= */
@media only screen and (min-width: 841px) and (max-width: 1199.98px) {
    .productdetailApparelleftarea {
        width: 38% !important;
    }

    .productdetailApparelrightarea {
        box-sizing: border-box;
        width: 33% !important;
    }

    .OfferZone {
        box-sizing: border-box;
        width: 29% !important;
        float: right;
        padding-left: 12px;
        padding-right: 4px;
    }
}

/* Tablets (768px to 840px): responsive.css already drops the offer box under
   the two columns at full width, but its two halves (description, Related
   Items) stayed side by side at ~365px each, so the description sat stranded
   on the left and the related-items carousel ran off the right edge. Clear the
   columns above and stack the two halves at full width. */
@media only screen and (min-width: 768px) and (max-width: 840.98px) {
    .OfferZone {
        clear: both;
        float: none !important;
        width: 100% !important;
        box-sizing: border-box;
        margin-top: 10px;
        padding-left: 0;
        padding-right: 0;
        border-left: 0;
    }

        .OfferZone .Offer_box,
        .OfferZone .productDetailsScroller {
            float: none !important;
            width: 100% !important;
            box-sizing: border-box;
            margin: 0 0 14px;
            overflow: hidden;
        }
}

/* Phones and tablets: the description / specification accordion
   (.productdetailstabarea3 > #horizontalTab, easy-responsive-tabs). The
   panel (.t_contareaTab.resp-tab-content) is content-box with 100% width
   (97% under 480px) plus 10px left padding and a 1px border, so it ran
   3px to 12px past its wrapper on the right, and with no right padding the
   text sat against the border. The accordion header (h2.resp-accordion)
   had the same 97% + padding overflow on phones. Same fonts and colours. */
@media only screen and (max-width: 991.98px) {
    .productdetailstabarea3 .resp-tabs-container h2.resp-accordion,
    .productdetailstabarea3 .t_contareaTab.resp-tab-content {
        box-sizing: border-box;
        width: 100% !important;
        max-width: 100%;
    }

    .productdetailstabarea3 .t_contareaTab.resp-tab-content {
        padding: 10px 12px !important;
    }

    /* Specification rows arrive from the ERP editor as inline-styled flex rows
       (label 40% / value 60%). A value with no spaces, e.g.
       "(Earrings/Necklace/Bracelet/Ring)", cannot break and runs out of its
       column, so let long words wrap and keep flex cells from refusing to shrink. */
    .productdetailstabarea3 .t_contareaTab.resp-tab-content * {
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}
