buy-now-card {
    display: grid;
    position: relative;
    grid-template-rows: auto auto 1fr auto;
    background-color: var(--card-bg-color);
    /* width: fit-content; */
}

buy-now-card .buy-now-card__picture {
    grid-row: 1;
}

buy-now-card .buy-now-card__picture a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
}

buy-now-card .buy-now-card__content {
    display: contents;
    text-align: center;
}

buy-now-card .buy-now-card__content > div {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 100%;
    min-width: 0;
}
buy-now-card .buy-now-card__content > div:nth-last-child(1) {
    padding-bottom: 20px;
}

buy-now-card .buy-now-card__content-title {
    grid-row: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

buy-now-card .buy-now-card__content-title h6 {
    font-weight: 500;
    font-size: 24px;
    white-space: nowrap;
    color: var(--card-title-color);
}

buy-now-card .buy-now-card__content-description {
    grid-row: 3;
    font-weight: 300;
    font-size: 18px;
    text-align: center;
    margin: 10px 0;
    color: var(--card-text-color);
    height: 58px;
}

buy-now-card .buy-now-card__content-description p {
    margin: 0;
}

buy-now-card .buy-now-card__content-variant select {
    -webkit-appearance: none;
    background-color: #333333;
    border: none;
    border-radius: 5px;
    padding: 4px 30px 4px 10px;
    position: relative;
    cursor: pointer;
    background-image: url("data: image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAKCAYAAAC5Sw6hAAAACXBIWXMAABCcAAAQnAEmzTo0AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABUSURBVHgBnc6JCQAgCAXQRmmkNqhNWqmNGsWUCoSsPOCDKD4MANAxOTgLbyumUVNglhlbCD0S98CMHQhbqLErYsG+iAZTIy/MjEiYGxEwP8KwpEEGvTS3RHWdSsUAAAAASUVORK5CYII=");
    background-repeat: no-repeat;
    background-position: calc(100% - 10px) center;
    background-size: 10px 6px;
    color: #ffffff;
    width: 164px;
}

buy-now-card .buy-now-card__content-variant .variant-wire {
    background-color: transparent;
    border: 1px solid #666666;
    color: #666666;
    background-image: url("data: image/png; base64, iVBORw0KGgoAAAANSUhEUgAAABIAAAAKCAYAAAC5Sw6hAAAAk0lEQVR4AZzRzQ2FIBAEYLJU9kp4FagHONuBsQsSLpZgR9oJzpho/AERCQRYdr4LYq2dsCr1cSDbGWNGCSH0MAYUijFkOmRrrXUr3vsBWINCEbYhIvJzzs0CQJViV4TGCvHwFoshzO8QLzkshTB7glhIYU8IczeIxSuWQ5iJQnw4YrjX2+/gHJ1JiN3EsP9zCHrUAgAA //+YcuPZAAAABklEQVQDAJnpbO8p5PUtAAAAAElFTkSuQmCC");
}

buy-now-card .buy-now-card__content-variant select option[disabled] {
    color: #999;
}

/* price */
buy-now-card .buy-now-card__content .buy-now-card__content-price {
    grid-row: 4;
    /* margin:20px 0; */
}

buy-now-card .buy-now-card__content .buy-now-card__content-price .price__regular {
    display: flex;
    column-gap: 20px;
    justify-content: center;
}

buy-now-card .buy-now-card__content .buy-now-card__content-price .price-position-sale span {
    font-weight: 700;
    font-size: 24px;
    color: #13B2BA;
    vertical-align: baseline;
}

buy-now-card .buy-now-card__content .buy-now-card__content-price .price-position-origin span {
    font-size: 12px;
    font-weight: 300;
    color: #B0B0B0;
    text-decoration: line-through;
    vertical-align: baseline;
}

/* button */
buy-now-card .buy-now-card__content .buy-now-card__actions {
    margin-top: 20px;
}

buy-now-card .buy-now-card__content .buy-now-card__actions.buy-now-card__btn-list {
    display: grid;
    grid-row: 5;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 10px;
    margin-top: 20px;
}

buy-now-card .buy-now-card__content .buy-now-card__actions .buy-now-card__action {
    font-weight: 400;
    font-size: 16px;
    border-radius: 50px;
    height: 40px;
    width: 50%;
    margin: 0 auto;
    white-space: nowrap;
    cursor: pointer !important;
}

/* buy-now-card .buy-now-card__content .buy-now-card__actions a {
    display: contents;
} */

buy-now-card .buy-now-card__content .buy-now-card__actions .button-group .button {
    font-weight: 400;
    font-size: clamp(12px, 1.23vw, 16px);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
}

buy-now-card .buy-now-card__content .buy-now-card__actions.buy-now-card__btn-list .button-group .button {
    width: 100%;
}

buy-now-card .buy-now-card__content .buy-now-card__actions .button-group a.button {
    background: var(--learn-bg-color);
    color: var(--learn-color);
}

buy-now-card .buy-now-card__content .buy-now-card__actions .button-group.btn-wire a.button {
    background: transparent;
}

buy-now-card .buy-now-card__content .buy-now-card__actions .button-group.btn-wire a.button:after {

    box-shadow: 0 0 0 1px var(--learn-bg-color), 0 0 0 1px var(--learn-bg-color);
}

buy-now-card .buy-now-card__content .buy-now-card__actions .button-group.btn-wire a.button:hover:after {
    box-shadow: unset;
}


buy-now-card .buy-now-card__content .buy-now-card__actions .button-group .quick-add .button {
    color: var(--add-color);
    background: var(--add-bg-color);
}

buy-now-card .buy-now-card__content .buy-now-card__actions .button-group.btn-wire .quick-add .button {
    background: transparent;
}

buy-now-card .buy-now-card__content .buy-now-card__actions .button-group.btn-wire .quick-add .button:after {

    box-shadow: 0 0 0 1px var(--add-bg-color), 0 0 0 1px var(--add-bg-color);
}

buy-now-card .buy-now-card__content .buy-now-card__actions .button-group.btn-wire .quick-add .button:hover:after {
    box-shadow: unset;
}


/* discount */
buy-now-card .buy-now-card__discount {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #13B2BA1A;
    border-radius: 50px;
}

buy-now-card .buy-now-card__discount span {
    font-weight: 700;
    font-size: 14px;
    color: #13B2BA;
    padding: 6px 10px;
}

/* picture */
buy-now-card .buy-now-card__picture {
    position: relative;
    background: var(--card-img-bg-color);
}

buy-now-card .buy-now-card__picture picture {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
}

buy-now-card .activity-tag {
    position: absolute;
    top: 0;
    left: 0;
    width: 105px;
}

buy-now-card .activity-tag img {
    width: 100%;
}

buy-now-card .activity-tag p {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    font-size: 19px;
    font-weight: 500;
    width: 100%;
    text-align: center;
    color: var(--tag-text-color);
}

buy-now-card .button:not(.button--link)::after,
buy-now-card .shopline-element-buy-now::after {
    box-shadow: unset;
}

/* 价格 */
buy-now-card .price .price-position-sale .price-item--sale .notranslate,
buy-now-card .price .price__regular .price-item--regular .notranslate {
    font-size: 24px;
    line-height: 1.2;
    color: var(--card-price-color);
}

buy-now-card .price .price-position-origin .price-item--regular .notranslate {
    font-size: 16px;
    line-height: 1.2;
    color: var(--card-original-price-color);
    font-weight: 400;
    text-decoration: line-through;
    padding-left: 4px;
}

@media (min-width:960px) {
    buy-now-card .buy-now-card__picture {
        margin-bottom: 20px;
    }

    buy-now-card .buy-now-card__content .buy-now-card__actions {
        column-gap: clamp(10px, 1.39vw, 20px);
    }

    buy-now-card .buy-now-card__content .buy-now-card__actions .buy-now-card__action {
        font-size: clamp(12px, 1.11vw, 16px);
    }
}

@media (max-width:959px) {
    buy-now-card .buy-now-card__picture {
        margin-bottom: 14px;
    }

    buy-now-card .buy-now-card__content-title h6 {
        font-size: 18px;
    }

    buy-now-card .buy-now-card__content-description {
        grid-row: 3;
        font-size: 14px;
        margin: 6px 0;
        color: #999999;
    }

    buy-now-card .price .price-position-origin .price-item--regular .notranslate {
        font-size: 18px;
    }

    buy-now-card .buy-now-card__content .buy-now-card__actions .button-group .button {
        font-size: 12px;
    }
}