.dytpb-tier-box {
    margin: 14px 0 16px;
}

.single-product.dytpb-single-has-tier div.product form.cart .quantity,
.single-product.dytpb-single-has-tier div.product form.cart .minus,
.single-product.dytpb-single-has-tier div.product form.cart .plus,
.single-product.dytpb-single-has-tier div.product form.cart [data-quantity="minus"],
.single-product.dytpb-single-has-tier div.product form.cart [data-quantity="plus"],
.single-product div.product form.cart.dytpb-has-tier .quantity,
.single-product div.product form.cart.dytpb-has-tier .minus,
.single-product div.product form.cart.dytpb-has-tier .plus,
.single-product div.product form.cart.dytpb-has-tier [data-quantity="minus"],
.single-product div.product form.cart.dytpb-has-tier [data-quantity="plus"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.dytpb-tier-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 18px;
    border: 1px solid #d7dce2;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 400;
    color: #4b5563;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.dytpb-tier-summary:hover,
.dytpb-tier-summary:focus-visible {
    border-color: #aeb7c2;
    box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.04);
    outline: none;
}

.dytpb-tier-summary-arrow {
    font-size: 15px;
    line-height: 1;
}

.dytpb-summary-prompt,
.dytpb-summary-qty {
    color: #111827;
}

.dytpb-summary-separator {
    color: #111827;
    opacity: .68;
}

.dytpb-summary-save {
    color: #ff2b6d;
}

.dytpb-tier-summary-text,
.dytpb-tier-summary-text * {
    font-weight: 400 !important;
    letter-spacing: normal !important;
    line-height: 1.35 !important;
    text-transform: none !important;
}

.dytpb-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.dytpb-modal[hidden] {
    display: none;
}

.dytpb-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.42);
    opacity: 0;
    transition: opacity .22s ease;
}

.dytpb-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(1020px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    margin: 0;
    padding: 20px;
    border-radius: 10px;
    background: #fff;
    overflow: auto;
    box-sizing: border-box;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(18px) scale(.98);
    transition: opacity .22s ease, transform .22s ease;
}

.dytpb-modal.is-open .dytpb-modal-backdrop {
    opacity: 1;
}

.dytpb-modal.is-open .dytpb-modal-dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.dytpb-modal-close {
    position: absolute;
    top: 10px;
    right: 18px;
    z-index: 12;
    width: 28px;
    height: 28px;
    border: 0;
    padding: 0;
    border-radius: 999px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.dytpb-modal-close-icon {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
}

.dytpb-modal-close-icon::before,
.dytpb-modal-close-icon::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #6b7280;
}

.dytpb-modal-close-icon::before {
    transform: rotate(45deg);
}

.dytpb-modal-close-icon::after {
    transform: rotate(-45deg);
}

.dytpb-modal-header {
    padding-right: 52px;
    margin-bottom: 16px;
}

.dytpb-modal-title {
    margin: 0;
    color: #111827;
    font-size: 16px;
    line-height: 1.15;
    font-weight: 800;
}

.dytpb-modal-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    overflow: hidden;
    margin-top: 8px;
    color: #374151;
}

.dytpb-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 7px;
    background: #efefef;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    flex: 0 0 auto;
}

.dytpb-modal-submeta {
    min-width: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dytpb-modal-content {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.dytpb-modal-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dytpb-modal-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    width: 100%;
}

.dytpb-modal-image-wrap img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.dytpb-modal-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
}

.dytpb-modal-head,
.dytpb-tier-item {
    display: grid;
    grid-template-columns: 1.12fr .82fr .78fr .72fr;
    gap: 12px;
    align-items: center;
}

.dytpb-modal-head {
    padding: 0 14px;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
}

.dytpb-modal-head span:nth-child(2),
.dytpb-modal-head span:nth-child(3),
.dytpb-modal-head span:nth-child(4) {
    text-align: center;
}

.dytpb-modal-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dytpb-tier-item {
    width: 100%;
    margin: 0;
    padding: 14px;
    border: 1px solid #d7dce2;
    border-radius: 10px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.dytpb-modal-list button.dytpb-tier-item,
.dytpb-modal-list .dytpb-tier-item {
    font-weight: 400 !important;
    letter-spacing: normal !important;
    line-height: 1.35 !important;
    text-transform: none !important;
}

.dytpb-modal-list .dytpb-tier-item .dytpb-tier-col,
.dytpb-modal-list .dytpb-tier-item .dytpb-tier-qty-text,
.dytpb-modal-list .dytpb-tier-item .amount,
.dytpb-modal-list .dytpb-tier-item .woocommerce-Price-amount {
    font-weight: 400 !important;
    letter-spacing: normal !important;
    line-height: 1.35 !important;
    text-transform: none !important;
}

.dytpb-tier-item:hover,
.dytpb-tier-item:focus-visible {
    border-color: #8f99a6;
    outline: none;
}

.dytpb-tier-item.is-active {
    border-color: #24c0e3;
    background: #e8f8fc;
}

.dytpb-tier-col {
    font-size: 17px;
    color: #111827;
    min-width: 0;
}

.dytpb-tier-col-qty {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.dytpb-tier-col-save,
.dytpb-tier-col-price,
.dytpb-tier-col-you-save {
    justify-self: center;
    text-align: center;
}

.dytpb-tier-radio {
    width: 22px;
    height: 22px;
    border: 2px solid #d7dce2;
    border-radius: 999px;
    background: #fff;
    position: relative;
    flex: 0 0 22px;
}

.dytpb-tier-item.is-active .dytpb-tier-radio {
    border-color: #10b9de;
}

.dytpb-tier-item.is-active .dytpb-tier-radio::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 999px;
    background: #10b9de;
}

.dytpb-save-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 8px;
    background: #f6cd29;
    color: #111827;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
}

.dytpb-tier-col-you-save {
    color: #ff2b6d;
}

.dytpb-tier-col-dash {
    color: #6b7280;
}

.dytpb-modal-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 8px;
    min-width: 0;
}

.dytpb-modal-footer-top {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    min-width: 0;
}

.dytpb-modal-footer-bottom {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
}

.dytpb-qty-control {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 56px;
    padding: 0 10px;
    border: 1px solid #d7dce2;
    border-radius: 14px;
    box-sizing: border-box;
    background: #ffffff;
    overflow: hidden;
    box-shadow: none !important;
}

.dytpb-qty-inner {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    width: 100%;
}

.dytpb-qty-value {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 100%;
}

.dytpb-qty-control.ux-quantity,
.dytpb-qty-control.buttons_added,
.dytpb-qty-control.form-minimal {
    background: #ffffff !important;
    border-color: #d7dce2 !important;
    box-shadow: none !important;
}

.dytpb-qty-btn,
.dytpb-qty-btn.button,
.dytpb-qty-btn.is-form,
.dytpb-qty-control .ux-quantity__button,
.dytpb-qty-control .ux-quantity__button.button,
.dytpb-qty-control .ux-quantity__button.is-form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 32px;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    outline: none !important;
    border-radius: 0 !important;
    font-size: 28px;
    line-height: 1;
    font-weight: 500;
    color: #111827;
    cursor: pointer;
    justify-self: center;
    align-self: stretch;
    appearance: none;
    font-family: inherit;
    -webkit-appearance: none;
}

.dytpb-qty-btn-icon {
    display: block;
    line-height: 1;
}

.dytpb-qty-btn:hover,
.dytpb-qty-btn:focus,
.dytpb-qty-btn:focus-visible,
.dytpb-qty-btn:active,
.dytpb-qty-btn.button:hover,
.dytpb-qty-btn.button:focus,
.dytpb-qty-btn.button:focus-visible,
.dytpb-qty-btn.button:active,
.dytpb-qty-control .ux-quantity__button:hover,
.dytpb-qty-control .ux-quantity__button:focus,
.dytpb-qty-control .ux-quantity__button:focus-visible,
.dytpb-qty-control .ux-quantity__button:active {
    color: #4b5563;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    background-image: none !important;
}

.dytpb-qty-btn.is-disabled,
.dytpb-qty-btn[aria-disabled="true"] {
    opacity: .36;
    cursor: not-allowed;
    color: #9ca3af;
}

.dytpb-qty-input,
.dytpb-qty-input.input-text,
.dytpb-qty-input.qty,
.dytpb-qty-input.text {
    display: block;
    width: 100%;
    min-width: 0;
    height: 28px;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    text-align: center;
    font-size: 18px;
    line-height: 28px;
    font-weight: 700;
    color: #111827;
    border-radius: 0 !important;
    font-family: inherit;
    -moz-appearance: textfield;
    appearance: textfield;
    -webkit-appearance: none;
}

.dytpb-qty-input:hover,
.dytpb-qty-input:focus,
.dytpb-qty-input:active,
.dytpb-qty-input.input-text:hover,
.dytpb-qty-input.input-text:focus,
.dytpb-qty-input.input-text:active {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    background-image: none !important;
}

.dytpb-qty-input::-webkit-outer-spin-button,
.dytpb-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.dytpb-total {
    min-height: 56px;
    width: 100%;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    align-self: center;
}

.dytpb-total-main {
    color: #111827;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.dytpb-total-main strong {
    color: #111827;
    font-size: 20px;
    font-weight: 800;
}

.dytpb-total.is-discount .dytpb-total-main,
.dytpb-total.is-discount .dytpb-total-main strong {
    color: #ff2b6d;
}

.dytpb-total-regular {
    margin-top: 4px;
    color: #6b7280;
    font-size: 14px;
    text-decoration: line-through;
    white-space: nowrap;
}

button.dytpb-modal-add,
.dytpb-modal-add.button,
.dytpb-modal-add.alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    width: 352px;
    min-width: 0;
    max-width: 100%;
    padding: 0 22px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    box-sizing: border-box;
    background: rgb(233,30,99) !important;
    border-color: rgb(233,30,99) !important;
    color: #fff !important;
}

.dytpb-price-freeze {
    opacity: 0 !important;
    transition: none !important;
}

@media (max-width: 767px) {
    .dytpb-modal {
        align-items: flex-end;
        justify-content: stretch;
        padding: 0 !important;
    }

    .dytpb-modal-dialog {
        width: 100vw;
        max-width: 100vw;
        height: 68vh;
        max-height: 68vh;
        margin: auto 0 0;
        padding: 0;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        transform: translateY(100%);
    }

    .dytpb-modal.is-open .dytpb-modal-dialog {
        transform: translateY(0);
    }

    .dytpb-modal-header {
        position: relative;
        flex: 0 0 auto;
        background: #fff;
        padding: 16px 56px 14px 16px;
        margin-bottom: 0;
        border-bottom: 1px solid #e5e7eb;
        z-index: 5;
    }

    .dytpb-modal-title {
        margin: 0;
        font-size: 16px;
        line-height: 1.25;
    }

    .dytpb-modal-meta-row,
    .dytpb-modal-left {
        display: none !important;
    }

    .dytpb-modal-content {
        grid-template-columns: 1fr;
        gap: 14px;
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding: 12px 16px 16px;
        background: #fff;
    }

    .dytpb-modal-head,
    .dytpb-tier-item {
        grid-template-columns: 1fr .9fr .85fr;
        gap: 10px;
    }

    .dytpb-modal-head span:last-child,
    .dytpb-tier-col-you-save {
        display: none;
    }

    .dytpb-tier-col {
        font-size: 16px;
    }

    .dytpb-modal-footer {
        gap: 12px;
    }

    .dytpb-modal-footer-top {
        grid-template-columns: 136px minmax(0, 1fr);
        gap: 12px;
        align-items: center;
    }

    .dytpb-qty-control {
        width: 136px;
        height: 52px;
        padding: 0 6px;
        border-color: #d7dce2 !important;
        background: #ffffff !important;
    }

    .dytpb-qty-inner {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
    }

    .dytpb-qty-value {
        height: 100%;
    }

    .dytpb-qty-btn,
    .dytpb-qty-btn.button,
    .dytpb-qty-control .ux-quantity__button {
        width: 40px;
        height: 100%;
        font-size: 24px;
    }

    
    .dytpb-qty-input,
    .dytpb-qty-input.input-text {
        height: 26px;
        font-size: 17px;
        line-height: 26px;
        padding: 0 !important;
    }

    .dytpb-total {
        min-height: 52px;
    }

    .dytpb-total-main {
        font-size: 16px;
    }

    .dytpb-total-main strong {
        font-size: 18px;
    }

    .dytpb-modal-footer-bottom {
        justify-content: center;
    }

    button.dytpb-modal-add,
    .dytpb-modal-add.button,
    .dytpb-modal-add.alt {
        width: calc(100% - 32px);
        height: 52px;
        margin: 0 auto;
    }
}
