

.add-to-cart {
    all: unset;
    font-size: 0.8rem;
    border-radius: 1px;
    transition: background-color 0.2s ease;
    border: .5px solid rgb(0, 0, 0);
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 3px;
    padding-bottom: 3px;
    background-color: #fffee2;
}
.added-message {
    min-height: 1.2rem;
    height: 1.5rem;
    font-size: 0.7rem;
    color: #dc6427;
    opacity: 0;
    transition: opacity 1s ease, visibility 0s linear 1s;
    text-align: center;
    margin-top: 3px;
    visibility: hidden;
    font-family: 'IM Fell DW Pica', monospace;
}
.added-message.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease, visibility 0s;
}
.view-cart {
    all: unset;
    font-size: 0.65rem;
    border-radius: 5px;
    transition: background-color 0.2s ease;
    border: .5px solid rgb(0, 0, 0);
    padding-left: 8px;
    padding-right: 8px;
    margin-top: 3px;
    padding-top: 2px;
    padding-bottom: 2px;
    background-color: #d4d055;
}
.product { 
    margin-bottom: 1rem; 
    justify-content: center;
    margin-left: 20%;
}
.product img {
    width: 100px;
    height: auto;
    display: block;
    margin: 0 auto;
}

#tea-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
    padding: 8px;
    justify-content: center;
}

.tea_box {
    flex: 0 1 500px;
    min-width: 0;
    margin: 0;
    padding: 15px;
    align-items: center;
    display: flex;
    justify-content: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.paypal-tea-box {
    flex-basis: calc(24.9375rem + 77px);
    padding: 37.5px;
    padding-bottom: 18.75px;
    justify-content: flex-start;
}

.home-page .bestsellers-section {
    width: 100%;
    margin-left: 0;
}

.featured-teas.featured-teas--shop {
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 701px) {
    .featured-teas.featured-teas--shop {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .featured-teas.featured-teas--shop {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* PayPal button styling */
paypal-add-to-cart-button {
    display: block;
    width: 100%;
}

paypal-add-to-cart-button .input-label {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem !important;
}

.shop-header-cart {
    position: absolute;
    right: 1.5rem;
    top: 75%;
    transform: translateY(-50%);
}

@media (min-width: 701px) {
    .desktop-header-bottom {
        padding-right: 7rem;
        transform: translateY(-0.2rem);
    }

    .shop-header-cart {
        top: calc(75% - 0.2rem);
    }
}

@media (max-width: 700px) {
    .shop-header-cart {
        top: 0.5rem;
        right: 0.5rem;
        transform: none;
    }

    .top-line-header .mobile-header-brand {
        display: flex;
        justify-content: center;
        padding: 0 3.8rem;
    }

    .top-line-header .mobile-brand-name {
        --brand-text-stroke: 0.5px;
        margin-right: 0.9rem;
        font-size: 1.3rem;
        font-weight: 400;
        -webkit-text-stroke: var(--brand-text-stroke) currentColor;
    }

    .top-line-header .mobile-brand-tagline {
        margin-left: 0.8rem;
        font-size: 0.7rem;
        transform: translateY(0.3rem);
    }

    .shop-header-cart .viewCartButtonContainer {
        padding: 0 0.55rem;
    }
}

@media (max-width: 420px) {
    .top-line-header .mobile-brand-name {
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        margin-right: 0;
        font-size: 1.5rem;
    }

    .top-line-header .mobile-brand-name::after {
        content: '';
        display: block;
        flex: 0 0 1.5rem;
        width: 1.5rem;
        height: 1.5rem;
        transform: translateY(0.15rem);
        background: url('/images/favicon_small.png') center / contain no-repeat;
    }
}

.loose-leaf-note {
    position: relative;
    width: calc(100% - 2rem);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.25rem 1.25rem 1.2rem;
    /* background: #e7f096; */
    border: 1px solid #a4b144;
    border-radius: 12px;
}

.home_blurb > span > .loose-leaf-note {
    margin-top: 2rem;
}

.loose-leaf-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 25px;
    height: 25px;
    background: #eff4b5 url('/images/favicon.png') center / contain no-repeat;
    transform: translate(-50%, -50%);
}

paypal-cart-button .viewCartButtonContainer {
    height: 40px !important;
    padding: 0 1.25rem;
    font-size: 0.8rem !important;
}

paypal-cart-button .viewCartButtonContainer svg {
    width: 0.9775rem;
    height: 0.9775rem;
}

.shop-header-cart .viewCartButtonContainer {
    transform: scale(0.8);
    transform-origin: right center;
}

.tea_box_tag {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    padding: 3px 8px;
    border-radius: 3px;
    background: #9aa641;
    color: white;
    font-family: 'DMSans', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.paypal-tea-box > .tea_box_tag {
    top: 30.5px;
    left: 30.5px;
}

.tea_box > * {
    padding-top: 0;
}

.tea_box > a {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.tea_box_img {
    width: 100%;
    margin-top: 0;
}

.tea_box_img img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
    border-radius: 4px;
}

.tea_box_name {
    padding-top: 10px;
    margin: 0 0 10px;
    color: #151a0e;
    font-family: 'IM Fell DW Pica', serif;
    font-size: 0.92rem;
    font-weight: 800;
}

.tea_box_name a,
.tea_box_name a:visited {
    color: inherit;
    text-decoration: none;
}

.buy-tea-banner-title-text {
    position: relative;
    left: 15vw;
    color: #fff;
}

.brew-banner-title {
    left: 10vw;
    white-space: nowrap;
}

.tea_box_type {
    color: #666;
    font-family: 'Courier New', serif;
    font-size: 0.55rem;
    font-weight: 400;
}

.tea_box_one_liner,
.tea-box-one-liner {
    min-height: 2.4rem;
    padding-top: 5px;
    padding-bottom: 5px;
    margin: 5px 0;
    color: #666;
    font-size: 0.9rem;
    font-style: normal;
    line-height: 1.1;
    width: 90%;
}

.paypal-tea-box > .tea-box-one-liner {
    margin-top: -5px;
}

.tea-box-one-liner p:nth-of-type(2) {
    text-align: left;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.8rem;
}
.tea-box-one-liner p:first-of-type {
    text-align: center;
    font-size: 0.8rem;
}

.tea-box-one-liner + details {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.8rem;
}

.tea-box-one-liner + details > summary {
    list-style: none;
    cursor: pointer;
    font-size: 0.75rem;
}

.tea-box-one-liner + details > summary::-webkit-details-marker {
    display: none;
}

.tea-box-one-liner + details > summary .read-less,
.tea-box-one-liner + details[open] > summary .read-more {
    display: none;
}

.tea-box-one-liner + details[open] > summary .read-less {
    display: inline;
}

.tea-box-one-liner + details p {
    text-align: left;
}

.tea_box_points {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: auto 0 0;
    font-family: 'DMSans', sans-serif;
    font-size: 0.8rem;
}

.tea_box_points > br {
    display: none;
}

.tea_box_points b {
    color: #4f5711;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
}

.tea_box button:not(.view-cart) {
    margin-top: 2px;
    padding: 10px 20px;
    border: 0;
    border-radius: 4px;
    background: #4f5711;
    color: white;
    cursor: pointer;
    font-family: 'DMSans', sans-serif;
    letter-spacing: 0.05em;
}

.tea_box button:not(.view-cart):hover {
    background: #3d4210;
}

.tea_box button.view-cart {
    all: unset;
    padding: 4px 12px;
    border: none;
    border-radius: 5px;
    background: #d4d055;
    cursor: pointer;
    font-family: 'DMSans', sans-serif;
    font-size: 0.65rem;
}

@media (min-width: 701px) {
    #tea-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
        padding: 20px;
    }
}

@media (max-width: 700px) {
    .tea_box {
        padding: 10px;
    }

    .paypal-tea-box {
        flex-basis: calc(24.9375rem + 52px);
        padding: 25px;
        padding-bottom: 12.5px;
    }

    .paypal-tea-box > .tea_box_tag {
        top: 23px;
        left: 23px;
    }
}

.shopping-cart {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    display: flex;
}
.shopping-cart-content {
    background: rgb(241, 244, 191);
    padding: 1.5rem;
    border-radius: 10px;
    /* border: 8px double white; */
    border: 1px solid white;
    outline-offset: 3px;
    outline: 1px solid white;
    width: 350px;
    max-width: 90%;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    width: 400px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.cart-link-wrapper a {
    position: relative;
    display: inline-block;
    z-index: 10;
}
.cart-notification {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgb(172, 211, 0);
    position: absolute;
    top: -5px;
    right: -10px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease-in-out;
    z-index: 11;
    box-shadow: 0 0 2px 1px rgb(172, 211, 0);
}
.cart-link-wrapper.has-items .cart-notification {
    opacity: 1;
    transform: scale(1);
}
.cart-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.3s ease;
  z-index: 9999;
}

.cart-preview.show {
  opacity: 1;
  visibility: visible;
}

.cart-preview-content {
  background: rgb(241, 244, 191);
  padding: 1.5rem;
  border-radius: 10px;
  width: 350px;
  max-width: 90%;
  box-shadow: 0 5px 20px rgba(0,0,0,0.8);
  text-align: center;
  position: relative;

  display: flex;
  flex-direction: column;
  max-height: 90vh;
  width: 400px;
}
.cart-preview-content h3 {
    padding-bottom: 3px;
}
.cart-preview-content p {
    padding-top: 15px;
}

#cart-preview-items {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}
.cart-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: .5rem; 
}
.qty-minus {
    padding: 2px;
    background: rgb(251, 255, 223); 
    border: 0px solid white;
    color: rgb(116, 141, 5);
    border-radius: 3px;
}
.qty-plus {
    padding: 2px;
    background: rgb(251, 255, 223); 
    border: 0px solid white;
    color: rgb(116, 141, 5);
    border-radius: 3px;
}
.remove-item {
    padding: 2px;
    background: inherit;
    border: 0px solid white;
    color: rgb(116, 141, 5);
    font-size: .65rem;
    border-radius: 3px;
}
.qty-controls img { 
    margin: 0 .3rem; 
    width: 24px; 
    cursor: pointer; 
}
.qty-controls span { 
    min-width: 1.5rem; 
    display: inline-block; 
    text-align: center; 
}
/* #paypal-button-container { margin-top: 1.5rem; } */

.close-cart {
  position: absolute;
  right: 10px;
  top: 5px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}
.continue-shopping {
    background: rgb(255, 253, 183);
    border: 0px;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: underline;
}
.checkout-btn {
    margin-top: 8px;
  background: #94a60d;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}
.checkout-btn:hover {
  background: #004f8a;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
