.frb-side-cart {
position: fixed;
inset: 0;
z-index: 1000000;
pointer-events: none;
}
.frb-side-cart.is-open {
pointer-events: auto;
}
.frb-side-cart__overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.55);
opacity: 0;
visibility: hidden;
transition: opacity 0.25s ease, visibility 0.25s ease;
}
.frb-side-cart.is-open .frb-side-cart__overlay {
opacity: 1;
visibility: visible;
}
.frb-side-cart__panel {
position: fixed;
top: 0;
right: 0;
bottom: 0;
width: min(100vw, 420px);
max-width: 100%;
display: flex;
flex-direction: column;
background: #fff;
box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
transform: translate3d(100%, 0, 0);
transition: transform 0.3s ease;
z-index: 1;
}
.frb-side-cart.is-open .frb-side-cart__panel {
transform: translate3d(0, 0, 0);
}
.frb-side-cart__header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
padding: 1rem 1.25rem;
border-bottom: 1px solid #e8e8e8;
flex-shrink: 0;
}
.frb-side-cart__title {
margin: 0;
font-size: 1.125rem;
font-weight: 600;
line-height: 1.3;
}
.frb-side-cart__close {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2.5rem;
height: 2.5rem;
margin: 0;
padding: 0;
border: 0;
border-radius: 4px;
background: transparent;
color: inherit;
font-size: 1.75rem;
line-height: 1;
cursor: pointer;
transition: background 0.2s ease;
}
.frb-side-cart__close:hover,
.frb-side-cart__close:focus-visible {
background: #f0f0f0;
outline: none;
}
.frb-side-cart__body {
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
}
.frb-side-cart__content {
padding: 0;
}
.frb-side-cart__empty {
padding: 2rem 1.25rem;
text-align: center;
color: #666;
}
.frb-side-cart__empty p {
margin: 0;
}
.frb-side-cart__items {
margin: 0;
padding: 0;
list-style: none;
}
.frb-side-cart__item {
display: flex;
gap: 0.875rem;
padding: 1rem 1.25rem;
border-bottom: 1px solid #eee;
}
.frb-side-cart__thumb {
flex: 0 0 72px;
width: 72px;
}
.frb-side-cart__thumb img {
display: block;
width: 72px;
height: 72px;
object-fit: cover;
border-radius: 4px;
}
.frb-side-cart__item-body {
flex: 1 1 auto;
min-width: 0;
}
.frb-side-cart__item-title {
margin: 0 0 0.35rem;
font-size: 0.9375rem;
font-weight: 600;
line-height: 1.35;
}
.frb-side-cart__item-title a {
color: inherit;
text-decoration: none;
}
.frb-side-cart__item-title a:hover {
text-decoration: underline;
}
.frb-side-cart__item-body dl {
margin: 0 0 0.35rem;
font-size: 0.8125rem;
color: #666;
}
.frb-side-cart__item-meta {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
font-size: 0.875rem;
}
.frb-side-cart__line-total {
font-weight: 600;
}
.frb-side-cart__footer {
padding: 1rem 1.25rem 1.25rem;
border-top: 1px solid #e8e8e8;
flex-shrink: 0;
}
.frb-side-cart__subtotal {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
margin-bottom: 1rem;
font-size: 1rem;
}
.frb-side-cart__subtotal-value {
font-weight: 700;
}
.frb-side-cart__actions {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.frb-side-cart__btn {
display: block;
box-sizing: border-box;
width: 100%;
padding: 0.75rem 1rem;
border-radius: 4px;
font-size: 0.9375rem;
font-weight: 600;
line-height: 1.2;
text-align: center;
text-decoration: none;
transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.frb-side-cart__btn--primary {
border: 1px solid #111;
background: #111;
color: #fff;
}
.frb-side-cart__btn--primary:hover {
background: #333;
border-color: #333;
color: #fff;
}
.frb-side-cart__btn--secondary {
border: 1px solid #ccc;
background: #fff;
color: #111;
}
.frb-side-cart__btn--secondary:hover {
border-color: #999;
color: #111;
} .frb-cart-icon {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
margin: 0;
padding: 0.5rem;
border: 0;
border-radius: 4px;
background: transparent;
color: inherit;
cursor: pointer;
transition: background 0.2s ease;
}
.frb-cart-icon:hover,
.frb-cart-icon:focus-visible {
background: rgba(0, 0, 0, 0.06);
outline: none;
}
.frb-cart-icon__icon {
display: inline-flex;
line-height: 0;
}
.frb-cart-icon__count {
position: absolute;
top: 0;
right: 0;
min-width: 1.125rem;
height: 1.125rem;
padding: 0 0.25rem;
border-radius: 999px;
background: #c00;
color: #fff;
font-size: 0.6875rem;
font-weight: 700;
line-height: 1.125rem;
text-align: center;
transform: translate(25%, -25%);
}
.frb-cart-icon__count:empty,
.frb-cart-icon__count[data-frb-cart-count="0"] {
display: none;
}
html.frb-side-cart-lock,
body.frb-side-cart-lock {
overflow: hidden;
} .woocommerce ul.products li.product .added_to_cart,
.woocommerce-page ul.products .added_to_cart,
.elementor-widget-woocommerce-products .added_to_cart,
.elementor-widget-wc-products .added_to_cart,
.elementor-widget-loop-grid .added_to_cart,
.elementor-loop-container .added_to_cart,
.products .added_to_cart.wc-forward,
.added_to_cart.wc-forward:not(.frb-side-cart__btn) {
display: none !important;
} .frb-toast {
position: fixed;
bottom: 24px;
right: 24px;
z-index: 1000000;
max-width: min(360px, calc(100vw - 48px));
margin: 0;
padding: 14px 18px;
border: 1px solid #c9a227;
border-radius: 8px;
background: #1a1a1a;
color: #fff;
font-size: 0.9375rem;
font-weight: 600;
line-height: 1.4;
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
opacity: 0;
transform: translateY(16px);
pointer-events: none;
transition: opacity 0.3s ease, transform 0.3s ease;
}
.frb-toast.is-visible {
opacity: 1;
transform: translateY(0);
}
.frb-toast[hidden] {
display: none !important;
}
@media (max-width: 767px) {
.frb-toast {
bottom: 16px;
left: 16px;
right: 16px;
max-width: none;
}
}