.quantity-wrapper {
    display: flex;
    align-items: center;
    padding-left: 24px;
}

form .shipping_method[checked='checked'] ~ label {
    background-color: #eebaa9;
    color: #f6f5ed;
    padding: 2px;
}

form #payment_method_wc_montonio_card:checked ~ label {
    background-color: #eebaa9;
    color: #f6f5ed;
    padding: 2px;
}

form #payment_method_wc_montonio_payments:checked ~ label {
    background-color: #eebaa9;
    color: #f6f5ed;
    padding: 2px;
}

form #shipping_method_0_multiparcels_dhl_courier16 ~ label {
    background-color: #eebaa9;
    color: #f6f5ed;
    padding: 2px;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(5px);
    }
    75% {
        transform: translateX(-5px);
    }
    100% {
        transform: translateX(0);
    }
}

.quantity-warning.shake {
    animation: shake 0.5s;
    animation-iteration-count: 1;
    color: var(--accent-1);
    font-weight: bold;
}

.quantity-button {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: var(--accent-1);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    text-align: center;
    text-decoration: none;
}

.quantity-button:hover {
    background-color: #3a4a3a;
}

.quantity-button:active {
    transform: scale(0.95);
    background-color: #2e3a2e;
}

.quantity-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(72, 91, 72, 0.5);
}

.woocommerce {
    width: 100%;
}

.cart {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cart__heading {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.cart__heading-item {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}

.cart__heading > i {
    font-size: 16px;
    color: var(--font-2);
}

.cart__heading-item > span {
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-2);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 500;
}

.cart__heading-item.active > span {
    background-color: var(--accent-1);
    color: var(--bg-2);
}

.cart__heading-item > h3 {
    font-size: 16px;
    font-weight: 500;
}

.cart__heading-item.active > h3 {
    font-weight: 700;
}

.cart__complete {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.cart__complete > i {
    font-size: 64px;
    color: var(--accent-1);
}

.cart__complete > h2 {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.cart__complete > p {
    font-size: 16px;
    font-weight: 400;
    text-align: center;
}

.cart__empty {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.cart__empty > i {
    width: 96px;
    height: 96px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-2);
    border-radius: 50%;
    box-shadow: var(--shadow);
    font-size: 48px;
    color: var(--font-2);
}

.cart__empty > h2 {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.cart__main,
.cart > form {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
}

.cart > form > .woocommerce-NoticeGroup {
    width: 100%;
}

.cart__items {
    width: calc(100% - 400px - 48px);
    display: flex;
    flex-direction: column;
}

.cart__item {
    padding: 24px 0;
    width: 100%;
    display: grid;
    grid-template-columns: 0.65fr 1fr 4fr 1fr;
    grid-template-rows: repeat(3, 1fr);
    border-bottom: 1px solid var(--border);
}

.cart__item.AIDC {
    grid-template-rows: repeat(2, 1fr);
}

.cart__item.GR {
    grid-template-rows: repeat(2, 1fr);
}

.cart__item.POCOR {
    grid-template-rows: repeat(2, 1fr);
}

.cart__item:first-child {
    padding-top: 0;
}

.cart__item-remove {
    grid-area: 1 / 1 / 4 / 2;
    justify-self: center;
    align-self: center;
    font-size: 18px;
    text-decoration: none;
    color: var(--accent-1);
}

.cart__item-image {
    grid-area: 1 / 2 / 4 / 3;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cart__item-image > img {
    width: 128px;
    height: 128px;
    object-fit: cover;
    object-position: center;
}

.cart__item-name {
    padding-left: 24px;
    grid-area: 1 / 3 / 2 / 4;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
}

.cart__item-attributes {
    padding-left: 24px;
    grid-area: 2 / 3 / 3 / 4;
    font-size: 14px;
    font-weight: 400;
    color: var(--font-2);
}

.cart__item-quantity {
    margin-left: 1vw;
    margin-right: 1vw;
    grid-area: 3 / 3 / 4 / 4;
    font-size: 14px;
    font-weight: 400;
    color: var(--font-2);
}

.cart__item-price {
    grid-area: 1 / 4 / 4 / 5;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
}

.cart__checkout {
    width: calc(100% - 400px - 48px);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart__checkout .form-row {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart__checkout label {
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    color: var(--font-1);
    line-height: 1 !important;
}

.cart__checkout abbr {
    color: var(--accent-1);
}

.cart__checkout input {
    padding: 0 16px !important;
    height: 40px !important;
    border: 1px solid var(--border) !important;
    outline: none !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: var(--font-1) !important;
}

.cart__checkout .selection {
    width: 100% !important;
    height: 40px !important;
    display: flex !important;
}

.cart__checkout .select2-selection {
    width: 100% !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    border: 1px solid var(--border) !important;
    border-radius: 0 !important;
}

.cart__checkout .select2-selection__arrow {
    top: unset !important;
}

.cart__sidebar {
    width: 400px;
}

.cart__sidebar-inner {
    position: sticky;
    position: -webkit-sticky;
    top: 48px;
    padding: 24px;
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-1);
    box-shadow: var(--shadow);
}

.cart__sidebar-inner > br {
    display: none;
}

.cart__sidebar-item {
    padding: 16px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border);
}

.cart__sidebar-item:first-child {
    padding-top: 0;
}

.woocommerce-terms-and-conditions-wrapper {
    padding: 16px;
}

.cart__sidebar-inner > button {
    padding: 0 16px !important;
    height: 40px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    background-color: var(--accent-1) !important;
    border: none;
    border-radius: 0 !important;
    box-shadow: var(--shadow);
    outline: none;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--bg-1) !important;
}

.cart__sidebar-box {
    padding: 16px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: var(--bg-1) !important;
    border-bottom: 1px solid var(--border);
    border-radius: 0 !important;
}

.cart__sidebar-item > span,
.cart__sidebar-box > span {
    font-size: 16px;
    font-weight: 500;
}

.cart__sidebar-item:last-child > span {
    font-size: 18px;
    font-weight: 700;
}

.cart__sidebar-box-items {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart__sidebar-box-item {
    position: relative;
    width: 100%;
}

.cart__sidebar-box-item > input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.cart__sidebar-box-item > label {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.montonio-pickup-point-select-wrapper {
    padding: 16px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.montonio-pickup-point-select-wrapper > label {
    font-size: 16px;
    font-weight: 500;
}

.montonio-pickup-point-select-wrapper > label > abbr {
    display: none;
}

.cart__sidebar-inner > form {
    margin-top: 16px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart__sidebar-inner > form > span {
    font-size: 14px;
    font-weight: 500;
    color: var(--font-2);
}

.cart__sidebar-inner > form > .group {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.cart__sidebar-inner > form > .group > input {
    padding: 0 16px;
    width: 100%;
    height: 40px;
    border: 1px solid var(--border);
    outline: none;
    font-size: 14px;
    font-weight: 400;
}

.cart__sidebar-inner > form > .group > button {
    padding: 0 16px;
    height: 40px;
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    background-color: var(--accent-1);
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--bg-1);
}

.cart__sidebar-inner > a {
    margin-top: 16px;
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--accent-1);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: var(--bg-1);
}

@media screen and (max-width: 1023px) {
    .cart__heading {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .cart__heading::-webkit-scrollbar {
        display: none;
    }

    .cart__heading-item {
        flex-shrink: 0;
    }

    .cart__heading > i {
        flex-shrink: 0;
    }

    .cart__main {
        flex-direction: column;
        gap: 24px;
    }

    .cart__items {
        width: 100%;
    }

    .cart__checkout {
        width: 100%;
    }

    .cart__sidebar {
        width: 100%;
    }

    .cart__sidebar-inner {
        position: static;
        top: unset;
    }

    .cart__sidebar-item {
        grid-template-columns: 0.5fr 96px 4fr 1fr;
    }

    .cart__item-image {
        width: 96px;
        height: 100%;
    }

    .cart__item-image > img {
        width: 96px;
        height: 96px;
    }
}

@media (max-width: 390px) {
    .cart__item-name {
        font-size: 12px;
    }
}

@media screen and (max-width: 599px) {
    .cart__item-attributes {
        display: flex;
        align-items: center;
    }

    .quantity-wrapper {
        grid-area: 3 / 3 / 4 / 5;
    }
}
