.woocommerce-cart {
    padding-top: 150px;
    padding-bottom: 80px;
}

.cart-page > .container {
    width: unset;
}

.cart-page .woocommerce .woocommerce-breadcrumb {
    margin-bottom: 40px;
}

.woocommerce-cart h1 {
    margin-bottom: 40px;
}

.woocommerce-cart h1 span {
    color: var(--tiffany);
}

.cart-wrapper {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

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

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 24px 20px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    position: relative;
    align-items: start;
}

.cart-main-info-wrapper {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #faf7f2;
}

.cart-main-info-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.cart-item-details > div:first-child {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.cart-item-details > div:first-child > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 150px;
    flex: 1;
}

.cart-item-details a {
    color: #111827;
}

.cart-item-details a:hover {
    color: #4b5563;
}

.cart-item-pricing,
.cart-item-price {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.cart-item-quantity-summary {
    margin: 0;
    font-family: "Geist";
    font-size: 14px;
    line-height: 1.45;
    color: #6b7280;
}

.cart-item-unit-price {
    font-family: "Geist";
    font-size: 18px;
    line-height: 1.1;
    color: #111827;
    font-weight: 500;
}

.details-wrapper {
    display: block;
    margin-top: 2px;
}

.cart-item-quantity {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.quantity-wrapper input[type="number"]::-webkit-inner-spin-button,
.quantity-wrapper input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-wrapper input[type="number"] {
    -moz-appearance: textfield;
}

.cart-item-details .quantity.quantity-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #111827;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.product-title {
    font-size: 18px;
}

.cart-item-details .quantity.quantity-wrapper > button {
    width: 28px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111827;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.cart-item-details .quantity.quantity-wrapper > input {
    width: 28px;
    height: 40px;
    padding: 0;
    border: 0;
    outline: none;
    text-align: center;
    font-family: "Geist";
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    background: transparent;
}

.cart-item-remove {
    display: flex;
    align-items: flex-start;
    margin-left: auto;
}

.remove-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7b7b7b;
    font-family: "Geist";
    font-size: 14px;
}

.remove-item:hover {
    color: #111827;
}

.cart-actions {
    display: none !important;
}

.cart-totals {
    max-width: 364px;
    width: 100%;
    padding: 24px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    position: relative;
}

.cart_totals > h3 {
    margin: 0;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
}

.cart-totals-list {
    margin: 0 0 24px;
    color: #374151;
}

.cart-totals-list > div {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-totals-list > div.cart-total-row.order-total {
    flex-direction: row;
}

.cart-totals-list > div > div {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.delivery-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.delivery-note {
    font-size: 12px;
    color: #6b7280;
}

.cart-page .order-total {
    padding-bottom: 16px;
    margin-top: 14px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-page .order-total .value,
.cart-page .order-total .value b {
    display: inline;
}

.checkout-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 18px;
    border-radius: 4px;
    background-color: var(--tiffany);
    color: #111827;
    text-align: center;
    transition: background-color 0.2s ease;
}

.checkout-btn:hover {
    background-color: #b9e3d2;
}

.cart-continue-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.cart-trust-signals {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    font-family: "Geist";
    font-size: 14px;
    color: #4b5563;
}

.cart-trust-signals > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cart-trust-signals svg {
    flex: 0 0 auto;
}

.cart-item--loading::after,
.cart-totals--loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.68);
    z-index: 2;
}

.cart-item--loading::before,
.cart-totals--loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border-radius: 999px;
    border: 2px solid rgba(17, 24, 39, 0.12);
    border-top-color: var(--tiffany);
    animation: cart-spin 0.7s linear infinite;
    z-index: 3;
}

.cart-item--loading,
.cart-totals--loading {
    pointer-events: none;
}

@keyframes cart-spin {
    to {
        transform: rotate(360deg);
    }
}

.empty-cart-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 80px;
}

.empty-cart-wrapper > p {
    margin-top: 12px;
    max-width: 500px;
    text-align: center;
    color: #4b5563;
    line-height: 1.625;
    font-family: "Geist";
}

.empty-cart-wrapper > h2 {
    font-size: 30px;
    font-family: "Geist";
}

.circle-wrapper {
    width: 128px;
    height: 128px;
    border-radius: 9999px;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.circle-wrapper svg {
    width: 64px;
    height: 64px;
    color: #99a1af;
}

.return-wrapper {
    margin-top: 28px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.return-wrapper a {
    padding: 16px 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid black;
    border-radius: 10px;
    font-family: "Geist";
    font-weight: 500;
    transition: 0.5s ease all;
    text-align: center;
}

#browse-collection {
    background-color: var(--tiffany);
    border: 1px solid var(--tiffany);
}

#return-home:hover,
#browse-collection:hover {
    transition: 0.5s ease all;
}

#return-home:hover {
    background-color: black;
    color: white;
}

#browse-collection:hover {
    background-color: #b9e3d2;
    border: 1px solid #b9e3d2;
}

@media screen and (max-width: 1000px) {
    .cart-wrapper {
        gap: 24px;
    }

    .cart-totals {
        min-width: 330px;
    }

    .remove-item > span {
        display: none;
    }
}

@media screen and (max-width: 800px) {
    .cart-wrapper {
        flex-direction: column;
    }

    .cart-totals {
        max-width: none;
    }
}

@media screen and (max-width: 768px) {

    .product-title,
    .cart-item-unit-price {
        font-size: 14px;
    }

    .cart-main-info-wrapper {
        width: 100px;
        height: 100px;
    }

    .cart-page .woocommerce .woocommerce-breadcrumb {
        margin-bottom: 25px;
    }

    .woocommerce-cart h1 {
        margin-bottom: 25px;
    }

    .woocommerce-cart {
        padding-top: 135px;
        padding-bottom: 50px;
    }

    .cart-item-details {
        gap: 18px;
    }

    .cart-item-details > div:first-child {
        gap: 18px;
    }

    .cart-item-remove {
        margin-left: 0;
    }

    .empty-cart-wrapper {
        padding-top: 30px;
        padding-bottom: 60px;
    }

    .circle-wrapper {
        width: 100px;
        height: 100px;
        margin-bottom: 14px;
    }

    .circle-wrapper svg {
        width: 50px;
        height: 50px;
    }

    .return-wrapper {
        margin-top: 20px;
    }

    .return-wrapper a {
        padding: 16px;
        font-size: 14px;
    }

    .empty-cart-wrapper > p {
        font-size: 14px;
        margin-top: 8px;
    }

    .empty-cart-wrapper > h2 {
        font-size: 25px;
    }
}

@media screen and (max-width: 480px) {
    .woocommerce-cart {
        padding-top: 120px;
    }

    .cart-item-details .quantity.quantity-wrapper > button {
        width: 26px;
    }

    .cart-item-details .quantity.quantity-wrapper > input {
        width: 26px;
    }

    .cart-item {
        gap: 10px;
        padding: 16px;
    }
}
