/* Astonish Restock Notify — fixed bottom RTL dock for unavailable products.
   Scoped to .arn-dock; the theme, artwork and buy bar are never modified. */

body.arn-fully-out-of-stock {
    padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
}

.arn-dock {
    position: fixed;
    left: 0;
    right: 0;
    inset-inline: 0;
    bottom: 0;
    z-index: 9999;
    direction: rtl;
    color: #14213d;
    background: #ffffff;
    border-top: 1px solid rgba(20, 33, 61, 0.09);
    box-shadow: 0 -6px 20px rgba(20, 33, 61, 0.07);
    padding: 0 20px calc(env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    font-family: inherit;
}

.arn-dock *,
.arn-dock *::before,
.arn-dock *::after {
    box-sizing: border-box;
}

.arn-dock__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    max-width: 1460px;
    min-height: 98px;
    margin: 0 auto;
}

.arn-dock__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1 1 auto;
}

.arn-dock__thumb {
    flex: 0 0 auto;
    display: block;
    width: 62px;
    height: 62px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(20, 33, 61, 0.08);
}

.arn-dock__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.arn-dock__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.arn-dock__availability {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.2;
    color: #6b7280;
}

.arn-dock__dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c0392b;
}

.arn-dock__title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #14213d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.arn-dock__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    color: #14213d;
}

.arn-dock__price del {
    order: 2;
    color: #6b7280;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    text-decoration: line-through;
    opacity: 1;
}

.arn-dock__price ins {
    order: 1;
    text-decoration: none;
    color: #a52a1a;
    font-weight: 700;
    font-size: 19px;
}

.arn-dock__action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex: 0 1 auto;
    min-width: 0;
    margin-inline-start: auto;
}

.arn-dock__notice {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.4;
    color: #7f1d1d;
    max-width: 320px;
}

.arn-dock__form {
    margin: 0;
    width: 470px;
    max-width: 100%;
}

.arn-dock__form .arn-dock__cta {
    width: 100%;
}

.arn-dock__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 470px;
    max-width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid #c4cdd9;
    border-radius: 6px;
    background: #eef1f5;
    color: #14213d;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.18s ease;
}

.arn-dock__cta:hover {
    background: #e2e7ee;
    border-color: #aeb9c8;
    color: #14213d;
}

.arn-dock__cta:active {
    background: #d5dbe4;
}

.arn-dock__cta:focus-visible {
    outline: 3px solid #14213d;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(20, 33, 61, 0.15);
}

.arn-notify__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 900px) {
    .arn-dock__inner {
        gap: 18px;
    }

    .arn-dock__title {
        font-size: 17px;
    }

    .arn-dock__cta,
    .arn-dock__form {
        width: 100%;
        max-width: 340px;
    }
}

@media (max-width: 640px) {
    body.arn-fully-out-of-stock {
        padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px));
    }

    .arn-dock {
        padding-top: 14px;
        padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        padding-inline: 16px;
    }

    .arn-dock__inner {
        flex-wrap: wrap;
        gap: 12px;
        min-height: 0;
    }

    .arn-dock__meta {
        flex: 1 1 100%;
        gap: 12px;
    }

    .arn-dock__thumb {
        width: 56px;
        height: 56px;
    }

    .arn-dock__title {
        font-size: 17px;
    }

    .arn-dock__action {
        flex: 1 1 100%;
        flex-wrap: wrap;
        justify-content: stretch;
        margin-inline-start: 0;
    }

    .arn-dock__notice {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .arn-dock__form {
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
    }

    .arn-dock__cta {
        width: 100%;
        max-width: none;
        height: 46px;
        min-height: 46px;
    }
}

@media (max-width: 360px) {
    .arn-dock {
        padding-inline: 12px;
    }

    .arn-dock__inner {
        gap: 10px;
    }

    .arn-dock__thumb {
        width: 52px;
        height: 52px;
    }

    .arn-dock__title {
        font-size: 16px;
    }

    .arn-dock__price {
        font-size: 17px;
    }

    .arn-dock__price ins {
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .arn-dock__cta {
        transition: none;
    }
}
