/*
Theme Name: Exception Audio — Woodmart Child
Template: woodmart
Version: 1.0.1
Text Domain: exceptionaudio
*/

/* Main slider: square outer corners, without changing button styles. */
#slider-336 > .wd-carousel-inner > .wd-carousel {
    border-radius: 0;
}

/* Square all outer clipping layers of the main slider. */
#slider-336,
#slider-336 > .wd-carousel-inner,
#slider-336 > .wd-carousel-inner > .wd-carousel,
#slider-336 .wd-slide,
#slider-336 .wd-slide-bg {
    border-radius: 0 !important;
}

/* Homepage hero: full available width from first paint, without JS stretching. */
body.page-id-631 .wd-page-content { container-type: inline-size; }
body.page-id-631 .elementor-631 > .elementor-element-26adaae {
    width: 100cqw;
    max-width: none;
    margin-left: calc(50% - 50cqw);
    margin-right: calc(50% - 50cqw);
    left: 0;
}

/* Allow the editorial status to wrap inside product thumbnails. */
.product-label.ea-discontinued-label {
    max-width: 170px;
    width: auto;
    height: auto;
    line-height: 1.3;
    white-space: normal;
    padding: 6px 8px;
}

/* Replacement text and button share a row and wrap on smaller screens. */
.ea-product-replacement {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    color: var(--wd-primary-color);
}
.ea-product-replacement > p {
    margin: 0;
}

/* Replacement availability and full-width destination button. */
.summary-inner .ea-discontinued {
    color: var(--wd-primary-color);
}
.ea-product-replacement {
    display: block;
    width: 100%;
}
.ea-product-replacement > p,
.ea-product-replacement .button {
    width: 100%;
}
.ea-product-replacement .button {
    display: flex;
    justify-content: center;
    white-space: normal;
}

/* Keep availability and its replacement button on the same row when space permits. */
.ea-discontinued-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 20px;
}
.ea-discontinued-row > .ea-discontinued { margin: 0; }
.ea-discontinued-row .ea-product-replacement,
.ea-discontinued-row .ea-product-replacement > p,
.ea-discontinued-row .ea-product-replacement .button { width: auto; }

/* Replacement button: price-color outline and softly rounded corners. */
.ea-product-replacement a.button {
    border: 1px solid var(--wd-primary-color);
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
}
.ea-product-replacement a.button:hover,
.ea-product-replacement a.button:focus-visible {
    color: var(--wd-primary-color);
    border-color: var(--wd-primary-color);
    background: transparent;
    box-shadow: none;
}

/* Override the out-of-stock color only for the replacement availability text. */
.single-product .ea-discontinued-row p.stock.ea-discontinued {
    color: var(--wd-primary-color) !important;
}
