.discount-code-box {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

#discount-list-code {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.showcode-content {
    --c: #111;
    --b: rgba(38, 149, 230, 0.6);
    background: #fff;
    color: #000;
    border: 1px dashed #38b5df;
    position: relative;
    margin-top: auto;
    width: -webkit-fit-content;
    width: fit-content;
    width: -moz-fit-content;
}

.showcode-content:hover {
    --c: var(--primary);
    --b: #38b5df;
}

.showcode-content:nth-child(n + 2) {
    margin-left: 12px;
}

.product-detail-info > * {
    margin-bottom: 12px;
}

#myForm ~ .product-combo,
#myForm ~ #js-show-promotion-code {
    margin-top: 12px;
}

.open-discount-code.detail-discount-code {
    margin-left: 0;
}

.discount-circle {
    display: block;
    width: 12px;
    height: 12px;
    position: absolute;
    top: calc(50% - 6px);
    background-color: #fff;
    border-radius: 14px;
    border-width: 1px;
    border-style: dashed;
    border-color: transparent var(--b) var(--b) transparent;
}

.circle-left {
    left: -6px;
    transform: rotate(-45deg);
}

.circle-right {
    right: -6px;
    transform: rotate(135deg);
}

.code-apply {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 18px;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    color: var(--c);
    min-height: 32px;
}

.detail-discount-code {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
    user-select: none;
    cursor: pointer;
}

.detail-discount-code:hover {
    color: #34b0dd;
}

.discount-code-wrapper-visible {
    overflow: hidden;
}

.discount-code-wrapper-visible .list-code-apply {
    opacity: 1;
    pointer-events: all;
}

.code-apply-background {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease-in-out;
    background: radial-gradient(ellipse closest-corner,rgba(0,0,0,.2) 1%,rgba(0,0,0,.7) 100%);
}

.discount-code-wrapper-visible .code-apply-background {
    opacity: 1;
    pointer-events: all;
}

.code-apply-item {
    --w: calc(100px + (120 - 90) * ((100vw - 300px) / (1920 - 300)));
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    padding: 10px 14px;
    box-shadow: 0 1px 6px 0 rgb(0 0 0 / 10%);
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    margin-bottom: 16px;
}

.code-apply-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    font-weight: 600;
    font-family: -apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Arial, sans-serif;
    font-size: 19px;
    color: #666;
    user-select: none;
    padding: 16px 20px 0;
}

.code-apply-title small {
    text-transform: none;
    font-size: 15px;
    color: #666;
    margin-right: auto;
    margin-left: 7px;
    font-weight: normal;
}

.close-apply-code {
    color: #999;
    cursor: pointer;
}

.code-apply-logo {
    width: var(--w);
    position: relative;
    display: block;
}

.code-apply-logo-content-wrap {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.code-apply-logo-content-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.svg-txt {
    display: none
}

.apply-button {
    border: none;
    background-color: #34b0dd;
    color: #fff;
    padding: 6px 0;
    width: 90px;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    min-width: 90px;
    margin-left: 4px;
}

.apply-button.active {
    border: 1px dashed #34b0dd;
    background-color: transparent;
    color: #111;
}

.choose-discount-code {
    cursor: pointer;
    user-select: none;
    color: #1a73e8;
    padding: 4px 0;
    display: block;
}

.choose-discount-code:hover {
    color: #1756a9;
}

.discount-code-box {
    flex-wrap: wrap;
}
.discount-code-box .pr-meta-label {
    width: 100%;
    margin-bottom: 5px;
    font-weight: 600;
}

.code-notification {
    padding: 0 20px;
    font-size: 14px;
}

@media (min-width: 760px) and (orientation:portrait), (min-width: 990px) and (orientation:landscape) {
    .code-apply-item-wrapper {
        max-height: 300px;
        overflow: hidden auto;
        padding: 12px 10px 12px 20px;
        margin-right: 10px;
    }

    .code-apply-item-wrapper {
        scrollbar-width: thin;
        scrollbar-color: #111 #e1e1e1;
    }

    .code-apply-item-wrapper::-webkit-scrollbar {
        width: 4px;
        border-radius: 8px;
        background-color: #e1e1e1;
        transition: width 300ms ease-in-out;
    }

    .code-apply-item-wrapper::-webkit-scrollbar-thumb {
        width: 4px;
        border-radius: 8px;
        background-color: #111;
    }

    .code-apply-content::after,
    .code-apply-content::before {
        content: "";
        display: block;
        width: 18px;
        height: 18px;
        background-color: #fff;
        border-radius: 16px;
        border-width: 1px;
        border-style: dashed;
        border-color: transparent #e1e1e1 #e1e1e1 transparent;
        position: absolute;
        left: -9px;
    }

    .code-apply-content::before {
        top: -19px;
        transform: rotate(45deg);
    }

    .code-apply-content::after {
        bottom: -19px;
        transform: rotate(-135deg);
    }

    .code-apply-logo::after {
        content: "";
        padding-top: 75%;
        display: block;
    }

    .code-apply-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        position: absolute;
        top: 0;
        left: 0;
    }

    .code-apply-content {
        width: calc(100% - var(--w) - 14px);
        border-left: 1px dashed #e1e1e1;
        position: relative;
        padding-left: 12px;
        padding-right: 12px;
        margin-left: 12px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 12px;
    }


    .list-code-apply {
        color: #333;
        font-size: 15px;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        width: 90%;
        max-height: 90vh;
        max-width: 600px;
        background-color: #fff;
        box-shadow: 0 3px 4px -1px rgb(0 0 0 / 20%), 0 3px 6px 0 rgb(0 0 0 / 14%), 0 1px 8px 0 rgb(0 0 0 / 10%);
        z-index: 1002;
        display: block;
        opacity: 0;
        pointer-events: none;
        padding: 0;
        border-radius: 5px;
    }
}
@media (max-width: 900px) and (orientation:portrait) {
    .discount-code-box {
        display: block;
    }
    .pr-meta-label + * {
        font-weight: 600;
    }
    #discount-list-code {
        padding-left: 0;
        font-size: 14px;
    }

}
@media (max-width: 760px) and (orientation:portrait), (max-width: 990px) and (orientation:landscape) {
    .code-apply {
        padding: 6px 20px;
    }

    .list-code-apply {
        color: #333;
        font-size: 15px;
        position: fixed;
        bottom: 0;
        left: 0;
        transform: translateY(110%);
        width: 100%;
        background-color: #fff;
        box-shadow: 0 3px 4px -1px rgb(0 0 0 / 20%), 0 3px 6px 0 rgb(0 0 0 / 14%), 0 1px 8px 0 rgb(0 0 0 / 10%);
        z-index: 9999991;
        display: block;
        opacity: 0;
        pointer-events: none;
        padding: 0;
        transition: transform 300ms ease-in-out;
        border-radius: 5px;
        padding-bottom: 60px;
    }

    .code-apply-background {
        z-index: 9999990;
    }

    .code-apply-item {
        align-items: center;
        position: relative;
    }

    .code-apply-item::before {
        content: "";
        width: 6px;
        height: calc(100% - 5px);
        position: absolute;
        top: 2.5px;
        left: -3px;
        background-image: radial-gradient(#fff 2px,transparent 0);
        background-size: 6px 6px;
        background-position-x: -6px;
        z-index: 2;
    }

    .discount-code-wrapper-visible .list-code-apply {
        transform: translateY(0);
    }

    .code-apply-item:last-child {
        margin-bottom: 0;
    }

    .code-apply-item-wrapper {
        padding: 12px 16px 0;
        max-height: 552px;
        overflow-y: auto;
        overflow-x: hidden;
    }
}

@media (max-width: 990px) and (orientation:landscape) {
    .code-apply-item-wrapper {
        max-height: 205px;
    }
}

@media (min-width: 768px) and (max-width: 1180px) and (orientation:portrait) {
    .code-apply-item-wrapper {
        max-height: 640px;
    }
}
@media (min-width: 768px) and (max-width: 1180px) and (orientation:landscape) {
    .code-apply-item-wrapper {
        max-height: 460px;
    }
}
@media (min-width: 768px){
    .apply-button {
        margin-left: auto;
    }
}
