/* SHARED INNER-PAGE PIECES (the three style tabs, cart and order)
   Layers over main.css.
   Holds what more than one tab uses: the select, the small green label, the
   label/value list, and the responsive style name row. */

/* SELECT on a tinted panel: the quantity select of the license panel, with a caret laid over it */


.styleSelect {
    position: relative;
    min-width: 0;
}

.styleSelect select {
    font-family: "Inerta", sans-serif;
    font-size: 1rem;
    font-weight: normal;
    width: 100%;
    border: 0;
    border-radius: 5px;
    padding: 4px 24px 4px 8px;
    background-color: #fff;
    color: #000;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    text-overflow: ellipsis;
}

.styleSelect select:focus {
    outline-color: #154734;
}

.styleSelect i {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.875em;
    pointer-events: none;
}

/* TEXT FIELD on a tinted panel: the select, as a text field */
.textField {
    font-family: "Inerta", sans-serif;
    font-size: 1rem;
    font-weight: normal;
    width: 100%;
    border: 0;
    border-radius: 5px;
    padding: 4px 8px;
    background-color: #fff;
    color: #000;
    -webkit-appearance: none;
    appearance: none;
}

.textField:focus {
    outline-color: #154734;
}

.textField::placeholder {
    color: #999;
}

/* ROW BUTTON: the license panel's To Cart / Remove buttons, a step smaller, for actions on one item of a list
   (a cart item, an order). Works on <a> and <button>. */
.rowButton {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 5px;
    background-color: rgba(21, 71, 52, 0.2);
    color: #000;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-wrap: nowrap;
    border: 0;
    font-family: "Inerta", sans-serif;
    cursor: pointer;
    transition: 200ms;
}

a.rowButton, a.rowButton:link, a.rowButton:visited {
    color: #000;
}

.rowButton:hover, a.rowButton:hover {
    background-color: rgba(21, 71, 52, 0.55);
    color: #FFF;
}

.rowButton:focus-visible {
    outline: 2px solid #154734;
    outline-offset: 2px;
}

/* LABEL AND LIST: a small green uppercase label; rows of label left, value right and bold,
   with a hairline above every row */

.specsLabel {
    font-size: 0.875em;
    color: #154734;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

/* label left, value right and bold, a hairline above every row */
.specsList {
    display: grid;
    grid-template-columns: fit-content(60%) minmax(0, 1fr);
}

.specsList dt, .specsList dd {
    padding: 8px 0;
    border-top: 1px solid rgba(21, 71, 52, 0.35);
}

.specsList dt {
    padding-right: 20px;
}

.specsList dd {
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

/* The style name is the page's h1, drawn as the h2 it replaces: none of main.css's h1 look
   (arrow, uppercase, tracking, right alignment, top margin); its weight comes from the style's own font class. */
h1.styleName {
    grid-column: span 7;
    font-size: 2.25em;
    text-transform: none;
    letter-spacing: normal;
    text-align: left;
    margin: 0;
}

h1.styleName::before {
    content: none;
}

/* STYLE NAME ROW: h2 + price + buy button in a .columns.no-margin.
   main.css fixes h2 at 7 columns; below 10 columns it steps down like .description,
   and from 5 columns it takes its own row with the price and button beneath. */

@media only screen and (max-width: 1410px) {
    h2, h1.styleName {
        grid-column: span 5;
    }
}

@media only screen and (max-width: 1150px) {
    h2, h1.styleName {
        grid-column: span 3;
    }
}

@media only screen and (max-width: 880px) {
    h2, h1.styleName {
        grid-column: span 5;
    }
    .suppl2 {
        grid-column: span 4;
    }
}

@media only screen and (max-width: 760px) {
    h2, h1.styleName {
        grid-column: span 4;
    }
    .suppl2 {
        grid-column: span 3;
    }
}
