.stock-sleuth-request-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 46px;
    min-height: 52px;
    padding: 0 0 3px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.stock-sleuth-request-button img {
    display: block;
    width: 40px;
    height: 40px;
}

.stock-sleuth-request-button span {
    display: block;
    margin-top: 0;
    color: #111;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

.product_list_wrap .delivery_wrap.has-stock-sleuth-request .left {
    flex: 1;
    width: auto;
}

.stock-sleuth-request-wrap {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    padding: 0 10px;
}

.stock-sleuth-request-wrap:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    border-right: 1px dashed #dedede;
}

.stock-sleuth-request-tooltip {
    position: absolute;
    right: 4px;
    bottom: calc(100% - 10px);
    z-index: 20;
    box-sizing: border-box;
    width: max-content;
    min-width: 220px;
    max-width: calc(100vw - 24px);
    padding: 10px 30px 10px 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.stock-sleuth-request-tooltip:after {
    content: '';
    position: absolute;
    right: 22px;
    bottom: -7px;
    width: 0;
    height: 0;
    border-top: 7px solid rgba(0, 0, 0, 0.6);
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
}

.stock-sleuth-request-tooltip__close {
    position: absolute;
    top: 52%;
    right: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.stock-sleuth-request-tooltip__close svg {
    display: block;
}

.stock-sleuth-layer {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.stock-sleuth-layer.is-open {
    display: flex;
}

.stock-sleuth-layer__dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

.stock-sleuth-layer__dialog {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.stock-sleuth-layer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 14px;
    border-bottom: 1px solid #e7eaed;
}

.stock-sleuth-layer__title {
    margin: 0;
    color: #17191c;
    font-size: 21px;
    line-height: 1.3;
}

.stock-sleuth-layer__close {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #555;
    font-size: 28px;
    line-height: 34px;
}

.stock-sleuth-layer__form {
    padding: 18px 20px 22px;
}

.stock-sleuth-layer__description {
    margin: 0;
    padding: 8px;
    color: #6b747d;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    word-break: keep-all;
}

.stock-sleuth-layer__field {
    margin-bottom: 14px;
}

.stock-sleuth-layer__label {
    display: block;
    margin-bottom: 7px;
    color: #32363b;
    font-size: 14px;
    font-weight: 700;
}

.stock-sleuth-layer__input,
.stock-sleuth-layer__textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cfd5dc;
    border-radius: 6px;
    background: #fff;
    color: #17191c;
    font-size: 15px;
}

.stock-sleuth-layer__input {
    height: 46px;
    padding: 0 12px;
}

.stock-sleuth-layer__input[readonly] {
    border-color: #e0e3e6;
    background: #f3f4f5;
    color: #666d74;
}

.stock-sleuth-layer__product-meta {
    margin: -2px 0 16px;
    padding: 12px;
    border: 1px solid #e2e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.stock-sleuth-layer__product-meta[hidden] {
    display: none;
}

.stock-sleuth-layer__badges,
.stock-sleuth-layer__specs {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.stock-sleuth-layer__specs:not(:empty) {
    margin-top: 9px;
}

.stock-sleuth-layer__badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 10px;
    border-radius: 14px;
    border: 1px solid #dce5f2;
    background: #f1f5fa;
    color: #4b6179;
    font-size: 12px;
    font-weight: 800;
}

.stock-sleuth-layer__badge--season {
    border-color: #d8e4f3;
    background: #eef4fb;
    color: #42658c;
}

.stock-sleuth-layer__badge--rating {
    border-color: #e3def1;
    background: #f4f1f9;
    color: #685684;
}

.stock-sleuth-layer__badge--type {
    border-color: #d5e9e7;
    background: #eef8f7;
    color: #3f7470;
}

.stock-sleuth-layer__badge--oe {
    border-color: #d8e9dc;
    background: #f0f8f2;
    color: #477454;
}

.stock-sleuth-layer__spec {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #dfe4e8;
    border-radius: 5px;
    background: #fff;
    font-size: 12px;
}

.stock-sleuth-layer__spec span {
    padding: 5px 7px;
    background: #eef1f4;
    color: #66707a;
    font-weight: 700;
}

.stock-sleuth-layer__spec strong {
    padding: 5px 8px;
    color: #202428;
    font-weight: 800;
}

.stock-sleuth-layer__textarea {
    min-height: 96px;
    padding: 11px 12px;
    resize: vertical;
}

.stock-sleuth-layer__input:focus,
.stock-sleuth-layer__textarea:focus {
    border-color: #1f7a42;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(31, 122, 66, 0.12);
}

.stock-sleuth-layer__actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.stock-sleuth-layer__button {
    flex: 1;
    height: 48px;
    border: 1px solid #ccd3da;
    border-radius: 6px;
    background: #fff;
    color: #202428;
    font-size: 16px;
    font-weight: 700;
}

.stock-sleuth-layer__button--submit {
    border-color: #1f7a42;
    background: #1f7a42;
    color: #fff;
}

.stock-sleuth-layer__button:disabled {
    border-color: #9aa3ad;
    background: #9aa3ad;
    color: #fff;
}

.stock-sleuth-layer__status {
    display: none;
    margin-top: 12px;
    padding: 11px 12px;
    border-radius: 6px;
    background: #eef8f1;
    color: #185f35;
    font-size: 13px;
    line-height: 1.45;
}

.stock-sleuth-layer__status.is-error {
    background: #fff0f0;
    color: #b32020;
}

.stock-sleuth-layer__notice {
    margin: 12px 0 0;
    color: #6b747d;
    font-size: 12px;
    line-height: 1.5;
    word-break: keep-all;
}

body.stock-sleuth-layer-open {
    overflow: hidden;
}
