.phpt-product-message {
    position: relative;
    margin: 4px 0 10px;
    padding: 9px 12px 9px 14px;
    color: #776962;
    background: #fff9f7;
    border: 1px solid #f2dedb;
    border-left: 3px solid #eda39c;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.45;
    box-shadow: none;
}

.phpt-product-message > :first-child { margin-top: 0; }
.phpt-product-message > :last-child { margin-bottom: 0; }
.phpt-product-message p { margin: 0 0 5px; }
.phpt-product-message p:last-child { margin-bottom: 0; }
.phpt-product-message a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.phpt-gallery,
.phpt-gallery * {
    box-sizing: border-box;
}

.phpt-gallery {
    position: relative;
    width: 100%;
    max-width: 100%;
    color: #111;
}

.phpt-gallery__stage {
    position: relative;
    width: 100%;
    aspect-ratio: var(--phpt-gallery-ratio, 1/1);
    overflow: hidden;
    border: 0 !important;
    border-radius: var(--phpt-gallery-radius, 0);
    background: var(--phpt-gallery-bg, #fff) !important;
    box-shadow: none !important;
    touch-action: pan-y;
}

.phpt-gallery button.phpt-gallery__main-button {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0;
    background: transparent !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    cursor: zoom-in;
}

.phpt-gallery[data-zoom="0"] .phpt-gallery__main-button {
    cursor: default;
}

.phpt-gallery__main-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    background: transparent;
    object-fit: var(--phpt-gallery-fit, contain);
    object-position: center;
    user-select: none;
    -webkit-user-drag: none;
    transition: opacity .16s ease;
}

.phpt-gallery.is-changing .phpt-gallery__main-image {
    opacity: .35;
}

.phpt-gallery button.phpt-gallery__zoom {
    position: absolute;
    z-index: 4;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    min-height: 0;
    display: grid;
    place-items: center;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    color: #fff;
    background: rgba(65, 48, 46, .70) !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}

.phpt-gallery__zoom:hover {
    transform: scale(1.05);
    background: rgba(65, 48, 46, .88) !important;
}

.phpt-gallery__zoom svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.phpt-gallery button.phpt-gallery__arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 52px;
    min-height: 0;
    display: grid;
    place-items: center;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #4f4541;
    background: rgba(255, 255, 255, .82) !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    opacity: 0;
    cursor: pointer;
    transition: opacity .18s ease, background .18s ease;
}

.phpt-gallery__stage:hover .phpt-gallery__arrow,
.phpt-gallery__arrow:focus-visible {
    opacity: 1;
}

.phpt-gallery__arrow:hover {
    background: #fff !important;
}

.phpt-gallery__arrow span {
    font-size: 34px;
    line-height: 1;
    transform: translateY(-2px);
}

.phpt-gallery__arrow--prev { left: 0; }
.phpt-gallery__arrow--next { right: 0; }

.phpt-gallery__thumbs {
    display: flex;
    align-items: stretch;
    gap: var(--phpt-thumb-gap, 8px);
    width: 100%;
    margin-top: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.phpt-gallery button.phpt-gallery__thumb {
    position: relative;
    flex: 0 0 var(--phpt-thumb-size, 122px);
    width: var(--phpt-thumb-size, 122px);
    min-height: 0;
    aspect-ratio: 1/1;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 2px !important;
    background: var(--phpt-gallery-bg, #fff) !important;
    box-shadow: inset 0 0 0 1px rgba(45, 35, 31, .10) !important;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    scroll-snap-align: start;
    opacity: .78;
    transition: opacity .15s ease, box-shadow .15s ease;
}

.phpt-gallery button.phpt-gallery__thumb.is-active {
    opacity: 1;
    box-shadow: inset 0 0 0 2px var(--phpt-gallery-accent, #eda39c) !important;
}

.phpt-gallery__thumb:focus-visible {
    outline: 2px solid var(--phpt-gallery-accent, #1e9ed1);
    outline-offset: 2px;
}

.phpt-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0 !important;
    box-shadow: none !important;
    object-fit: cover;
    object-position: center;
    user-select: none;
    -webkit-user-drag: none;
}

.phpt-gallery__lightbox[hidden] {
    display: none !important;
}

.phpt-gallery__lightbox {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 56px 70px;
    background: rgba(0, 0, 0, .92);
}

.phpt-gallery__lightbox-image {
    display: block;
    max-width: min(92vw, 1600px);
    max-height: calc(100vh - 90px);
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.phpt-gallery__lightbox-close,
.phpt-gallery__lightbox-nav {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
    cursor: pointer;
}

.phpt-gallery__lightbox-close {
    top: 12px;
    right: 18px;
    width: 44px;
    height: 44px;
    font-size: 42px;
    line-height: 1;
}

.phpt-gallery__lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 58px;
    height: 74px;
    font-size: 58px;
    line-height: 1;
}

.phpt-gallery__lightbox-nav--prev { left: 8px; }
.phpt-gallery__lightbox-nav--next { right: 8px; }

body.phpt-lightbox-open {
    overflow: hidden !important;
}

.phpt-notice {
    padding: 12px 14px;
    border: 1px solid #d63638;
    background: #fff;
    color: #8a2424;
}

@media (max-width: 767px) {
    .phpt-gallery__arrow {
        width: 34px;
        height: 46px;
        opacity: .82;
    }

    .phpt-gallery__thumb {
        flex-basis: min(var(--phpt-thumb-size, 96px), 24vw);
        width: min(var(--phpt-thumb-size, 96px), 24vw);
    }

    .phpt-gallery__lightbox {
        padding: 54px 10px 20px;
    }

    .phpt-gallery__lightbox-nav {
        width: 42px;
        height: 60px;
        font-size: 48px;
        background: rgba(0, 0, 0, .28);
    }
}
