body.ycy-page-goods .ycy-item-page {
    position: relative;
    z-index: 1;
}

body.ycy-page-goods .ycy-item-purchase .panel-body {
    padding-top: 0;
}

body.ycy-page-goods .ycy-item-cover-column {
    flex-direction: column;
}

body.ycy-page-goods .ycy-goods-gallery {
    width: 100%;
}

body.ycy-page-goods .ycy-goods-gallery__main {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    outline: none;
}

body.ycy-page-goods .ycy-goods-gallery__main:focus-visible {
    box-shadow: 0 0 0 3px rgba(var(--ycy-primary-rgb, 122, 140, 255), .28);
}

body.ycy-page-goods .ycy-goods-gallery__arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    place-items: center;
    color: #fff;
    background: rgba(37, 43, 60, .48);
    box-shadow: 0 5px 16px rgba(37, 43, 60, .18);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity .2s ease, background .2s ease, transform .2s ease;
}

body.ycy-page-goods .ycy-goods-gallery__main:hover .ycy-goods-gallery__arrow,
body.ycy-page-goods .ycy-goods-gallery__main:focus-within .ycy-goods-gallery__arrow {
    opacity: 1;
}

body.ycy-page-goods .ycy-goods-gallery__arrow:hover,
body.ycy-page-goods .ycy-goods-gallery__arrow:focus-visible {
    color: #fff;
    background: var(--ycy-primary, #7a8cff);
    transform: translateY(-50%) scale(1.06);
}

body.ycy-page-goods .ycy-goods-gallery__arrow.is-prev { left: 14px; }
body.ycy-page-goods .ycy-goods-gallery__arrow.is-next { right: 14px; }

body.ycy-page-goods .ycy-goods-gallery__count {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    padding: 4px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(37, 43, 60, .58);
    font-size: 12px;
    line-height: 1.25;
}

body.ycy-page-goods .ycy-goods-gallery__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding: 2px;
    scrollbar-width: thin;
}

body.ycy-page-goods .ycy-goods-gallery__thumb-item {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
}

body.ycy-page-goods .ycy-goods-gallery__thumb {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    background: rgba(255, 255, 255, .56);
    box-shadow: 0 4px 12px rgba(55, 63, 87, .11);
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

body.ycy-page-goods .ycy-goods-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.ycy-page-goods .ycy-goods-gallery__thumb:hover,
body.ycy-page-goods .ycy-goods-gallery__thumb:focus-visible,
body.ycy-page-goods .ycy-goods-gallery__thumb.is-active {
    border-color: var(--ycy-primary, #7a8cff);
    box-shadow: 0 6px 16px rgba(var(--ycy-primary-rgb, 122, 140, 255), .22);
    transform: translateY(-1px);
}

body.ycy-page-goods .ycy-item-title {
    color: #1f2937;
    font-weight: 700;
}

@media (min-width: 992px) {
    body.ycy-page-goods .ycy-item-cover-column,
    body.ycy-page-goods .ycy-item-cover-column .acg-cover {
        align-self: flex-start;
    }

}

body.ycy-page-goods .ycy-item-badges {
    flex-wrap: wrap;
}

body.ycy-page-goods .ycy-item-badges .badge-soft,
body.ycy-page-goods .ycy-discount-trigger {
    line-height: 1.5;
}

body.ycy-page-goods button.badge-soft,
body.ycy-page-goods .ycy-copy-id,
body.ycy-page-goods .sku,
body.ycy-page-goods .pay {
    font-family: inherit;
}

body.ycy-page-goods button.badge-soft {
    border-width: 1px;
}

body.ycy-page-goods .ycy-goods-id {
    gap: .18rem;
}

body.ycy-page-goods .ycy-copy-id {
    width: 16px;
    height: 16px;
    margin: -1px -2px -1px 0;
    color: inherit;
    background: transparent;
    font-size: 12px;
}

body.ycy-page-goods .ycy-copy-id:hover,
body.ycy-page-goods .ycy-copy-id:focus-visible {
    color: #fff;
    background: var(--acg-primary);
}

body.ycy-page-goods .ycy-share-button {
    min-width: 28px;
}

body.ycy-page-goods .ycy-cover-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

body.ycy-page-goods .ycy-cover-share-button,
body.ycy-page-goods .ycy-cover-cart-mount .shopping-cart-add-button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
}

body.ycy-page-goods .ycy-cover-cart-mount {
    display: contents;
}

body.ycy-page-goods .ycy-cover-share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 10px 0;
    border: 1px solid rgba(171, 171, 171, .25);
    border-radius: 8px;
    color: #777;
    background: rgba(255, 255, 255, .49);
    font-size: 14px;
    text-decoration: none;
    transition: all .2s;
}

body.ycy-page-goods .ycy-cover-share-button:hover,
body.ycy-page-goods .ycy-cover-share-button:focus-visible {
    border-color: rgba(122, 140, 255, .35);
    color: var(--acg-primary);
    background: rgba(122, 140, 255, .08);
}

body.ycy-page-goods .ycy-cover-cart-mount .shopping-cart-add-button {
    margin: 0;
}

body.ycy-page-goods .abacus {
    min-height: 29px;
}

body.ycy-page-goods .price em {
    margin-left: .2rem;
    color: var(--acg-text-muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
}

body.ycy-page-goods .ycy-market-price {
    color: #9ca3af;
    font-size: 12px;
}

body.ycy-page-goods .ycy-discount-trigger {
    color: #c28721;
    background: rgba(254, 243, 199, .55);
}

body.ycy-page-goods .ycy-buy-form {
    width: 100%;
}

body.ycy-page-goods .dc-mdt-banner {
    min-height: 0;
    margin: 0;
    padding: 8px 10px;
    border-color: rgba(171, 171, 171, .2);
    background: rgba(255, 255, 255, .49);
    color: #6b7280;
}

body.ycy-page-goods .dc-mdt-banner__text {
    font-size: 13px;
}

body.ycy-page-goods .dc-mdt-banner__text strong {
    color: var(--acg-danger);
}

body.ycy-page-goods .dc-mdt-banner__action {
    min-height: 31px;
    color: #fff;
    background: #2f3238;
}

body.ycy-page-goods .dc-mdt-banner__action .dc-mdt-action__label {
    color: #e6c700;
}

body.ycy-page-goods .ycy-field-block {
    min-width: 0;
}

body.ycy-page-goods .order-query-security-password-field {
    width: 100%;
    margin: 0;
}

body.ycy-page-goods .order-query-security-password-field .input-field-header {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: .25rem;
    margin-bottom: 0;
}

body.ycy-page-goods .order-query-security-password-field .section-label {
    margin: 0;
    color: #808080;
    font-size: 14px;
    font-weight: 400;
}

body.ycy-page-goods .order-query-security-password-field .required-star {
    margin-right: 4px;
    color: var(--acg-danger);
}

body.ycy-page-goods .order-query-security-password-field .input-field-input {
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    border: var(--bs-border-width) solid rgba(171, 171, 171, .28);
    border-radius: .375rem;
    outline: 0;
    color: #212529;
    background: rgba(255, 255, 255, .49);
    box-shadow: none;
}

body.ycy-page-goods .order-query-security-password-field .input-field-input:focus {
    border-color: var(--acg-primary);
    box-shadow: 0 0 0 .25rem rgba(122, 140, 255, .18);
}

body.ycy-page-goods .order-query-security-password-field .input-field-note {
    display: block;
    margin-top: 4px;
    padding-left: 14px;
    color: var(--acg-danger);
    font-size: 12px;
    line-height: 1.5;
}

body.ycy-page-goods .ycy-required {
    color: var(--acg-danger);
}

body.ycy-page-goods .ycy-field-tip,
body.ycy-page-goods .ycy-coupon-result {
    display: block;
    margin-top: .35rem;
    color: #8b8b8b;
    font-size: 12px;
    line-height: 1.5;
}

body.ycy-page-goods .ycy-coupon-result.is-success {
    color: #3aa76d;
}

body.ycy-page-goods .ycy-coupon-result.is-error {
    color: var(--acg-danger);
}

body.ycy-page-goods .ycy-coupon-input-group .btn {
    border-color: rgba(171, 171, 171, .28);
    color: #777;
    background: rgba(255, 255, 255, .62);
}

body.ycy-page-goods .ycy-coupon-input-group .btn:hover,
body.ycy-page-goods .ycy-coupon-input-group .btn:focus-visible {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(90deg, var(--acg-primary), var(--acg-secondary));
}

body.ycy-page-goods .ycy-email-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

body.ycy-page-goods .ycy-email-option {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #8b8b8b;
    font-size: 12px;
    cursor: pointer;
}

body.ycy-page-goods .ycy-email-option input {
    accent-color: var(--acg-primary);
}

body.ycy-page-goods .sku {
    cursor: pointer;
}

body.ycy-page-goods .sku.is-disabled {
    opacity: .45;
    cursor: not-allowed;
    text-decoration: line-through;
}

body.ycy-page-goods .cash-pay .form-label {
    flex-wrap: wrap;
}

body.ycy-page-goods .ycy-payable {
    margin-left: auto;
    margin-right: 8px;
    color: var(--acg-text-muted);
    font-size: 12px;
    font-weight: 500;
}

body.ycy-page-goods .ycy-payable strong {
    color: var(--acg-danger);
    font-size: 14px;
}

body.ycy-page-goods .pay-list .pay {
    border: 0;
    cursor: pointer;
}

body.ycy-page-goods .pay-list .pay:focus-visible,
body.ycy-page-goods .sku:focus-visible,
body.ycy-page-goods .ycy-copy-id:focus-visible,
body.ycy-page-goods .ycy-share-button:focus-visible {
    outline: 2px solid var(--acg-primary);
    outline-offset: 2px;
}

body.ycy-page-goods .pay-list .pay.is-loading {
    opacity: .6;
    pointer-events: none;
}

body.ycy-page-goods .ycy-payment-empty {
    margin: .65rem 0 0;
    color: var(--acg-danger);
    font-size: 13px;
}

body.ycy-page-goods .ycy-item-description {
    overflow-wrap: anywhere;
    line-height: 1.7;
}

body.ycy-page-goods .ycy-item-description img,
body.ycy-page-goods .ycy-item-description video,
body.ycy-page-goods .ycy-item-description iframe,
body.ycy-page-goods .ycy-item-description table {
    max-width: 100%;
}

body.ycy-page-goods .ycy-item-description img,
body.ycy-page-goods .ycy-item-description video {
    height: auto;
}

body.ycy-page-goods .ycy-item-description table {
    display: block;
    overflow-x: auto;
}

.layui-layer.ycy-order-confirm {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 55px rgba(82, 63, 105, .22);
}

.layui-layer.ycy-order-confirm .layui-layer-title {
    border-bottom-color: rgba(122, 140, 255, .14);
    color: #1f2937;
    background: rgba(255, 255, 255, .96);
    font-weight: 700;
}

.layui-layer.ycy-order-confirm .layui-layer-content {
    color: #4b5563;
    line-height: 1.75;
}

.layui-layer.ycy-order-confirm .layui-layer-btn a {
    border-radius: 12px;
}

.layui-layer.ycy-order-confirm .layui-layer-btn0 {
    border-color: transparent;
    background: linear-gradient(90deg, var(--acg-primary), var(--acg-secondary));
}

.ycy-discount-list {
    padding: 22px;
    text-align: center;
}

.ycy-discount-list h3 {
    margin: 0 0 14px;
    color: #1f2937;
    font-size: 18px;
    font-weight: 700;
}

.ycy-discount-list p {
    margin: 0 0 7px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}

body.ycy-page-goods .cash-pay .pay-list.ycy-pay-list-layout-1 .pay {
    width: 100%;
}

@media (max-width: 991.98px) {
    body.ycy-page-goods .ycy-item-cover-column {
        min-height: 0;
    }

    body.ycy-page-goods .ycy-goods-gallery__arrow {
        opacity: 1;
    }

    body.ycy-page-goods .ycy-goods-gallery__thumb-item {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
    }

    body.ycy-page-goods .ycy-item-form-column {
        margin-top: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    body.ycy-page-goods .ycy-item-page {
        padding-top: 1.5rem !important;
        padding-bottom: 1rem !important;
    }

    body.ycy-page-goods .ycy-item-purchase {
        margin-top: 1.5rem !important;
    }

    body.ycy-page-goods .ycy-item-purchase .panel-body {
        padding-right: 16px;
        padding-left: 16px;
    }

    body.ycy-page-goods .ycy-item-form-column {
        margin-top: 1.5rem;
    }

    body.ycy-page-goods .ycy-item-title {
        font-size: 19.5px;
        line-height: 1.2;
    }

    body.ycy-page-goods .ycy-item-badges {
        gap: .35rem !important;
    }

    body.ycy-page-goods .cash-pay .pay-list {
        gap: .4rem;
    }

    body.ycy-page-goods .ycy-cover-actions {
        align-items: stretch;
        flex-direction: row;
        gap: 10px;
    }

    body.ycy-page-goods .ycy-cover-share-button,
    body.ycy-page-goods .ycy-cover-cart-mount .shopping-cart-add-button {
        white-space: nowrap;
    }

    body.ycy-page-goods .pay-list .pay {
        padding: .35rem .6rem;
    }
}
