/* Floating Cart Button */
.floating-cart-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    min-width: 60px;
    height: 60px;
    padding: 0 10px;
    border-radius: 30px;
    background-color: var(--button-color);
    color: var(--button-text);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
    z-index: 999;
    cursor: pointer;
    border: none;
    outline: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.floating-cart-btn:hover {
    transform: scale(1.05);
    opacity: 0.95;
}

.floating-cart-btn .cart-btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.floating-cart-btn .cart-main-icon {
    font-size: 1.3rem;
}

.floating-cart-btn .cart-loc-badge {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 2px;
}

.floating-cart-btn.cart-disabled,
.floating-cart-btn[qty="0"] {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
    box-shadow: none;
}

.cart-badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

/* Quantity Controls & Customize Buttons */
.btn-customize {
    background-color: #ffffff;
    color: var(--highlight-text);
    border: 1.5px solid var(--highlight-border);
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.qty-control-wrapper {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid var(--highlight-border);
    border-radius: 6px;
    overflow: hidden;
    user-select: none;
}

.qty-btn {
    background: transparent;
    color: var(--highlight-text);
    border: none;
    width: 30px;
    height: 30px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-display-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    min-width: 26px;
    text-align: center;
}

.custom-tag-label {
    display: block;
    font-size: 0.7rem;
    color: var(--highlight-text);
    text-align: center;
    margin-top: 2px;
    font-weight: 600;
}

/* Modals */
.modal-backdrop-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-dialog-box {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}
.modal-top-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}
.modal-close-icon {
    background: transparent;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #64748b;
}

.modal-scroll-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
}

.modal-bottom-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* Customizer Body */
.customizer-item-hero-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.addon-group-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}
.addon-group-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
    display: flex;
    justify-content: space-between;
}
.addon-group-limit {
    font-size: 0.78rem;
    color: #64748b;
}

.addon-option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    cursor: pointer;
}
.addon-option-label-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #334155;
}
.addon-option-price {
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f172a;
}

.existing-configs-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}
.existing-configs-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.5rem;
}
.existing-config-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px dashed #cbd5e1;
}
.existing-config-row:last-child {
    border-bottom: none;
}
.existing-config-tags {
    font-size: 0.82rem;
    color: #334155;
    max-width: 65%;
}

/* Cart Drawer */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1060;
    display: none;
    justify-content: flex-end;
}

.cart-drawer-container {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cart-location-header {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
}

.cart-item-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 0.85rem;
}
.cart-item-info {
    flex: 1;
}
.cart-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
}
.cart-item-addon-list {
    font-size: 0.8rem;
    color: #64748b;
}
.cart-item-unit-price {
    font-size: 0.82rem;
    color: #475569;
}
.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.cart-item-line-total {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.cart-footer-container {
    background: #ffffff;
    max-height: 52vh;
    overflow-y: auto;
}

.cart-bill-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.4rem;
}
.cart-bill-row .bill-right-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cart-bill-row.discount-row {
    color: #16a34a;
}

.btn-coupon-toggle {
    background: transparent;
    color: var(--highlight-text);
    border: 1px dashed var(--highlight-border);
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-remove-coupon {
    background: transparent;
    border: none;
    color: #dc2626;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: 6px;
}

.available-coupons-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem;
    margin: 0.35rem 0 0.65rem;
    max-height: 130px;
    overflow-y: auto;
}
.coupon-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.3rem;
    border-bottom: 1px solid #e2e8f0;
}
.coupon-item-row:last-child {
    border-bottom: none;
}
.coupon-item-info {
    font-size: 0.8rem;
    color: #1e293b;
    font-weight: 600;
}

.btn-apply-coupon {
    background: var(--button-color);
    color: var(--button-text);
    border: none;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    cursor: pointer;
}

.cart-taxes-list {
    border-top: 1px dashed #e2e8f0;
    padding-top: 0.4rem;
    margin-top: 0.4rem;
}
.cart-tax-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.cart-subtotal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 0.4rem;
    margin-bottom: 0.65rem;
}
.cart-total-bar {
    border-top: 2px solid #e2e8f0;
    padding-top: 0.5rem;
}

.cart-note-wrapper {
    margin: 0.4rem 0 0.85rem;
}
.cart-note-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: inherit;
    resize: none;
    outline: none;
}
.cart-note-input:focus {
    border-color: var(--highlight-border);
}

.btn-checkout-continue {
    width: 100%;
    background-color: var(--button-color);
    color: var(--button-text);
    border: none;
    padding: 0.85rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.15s ease;
}
.btn-checkout-continue:hover {
    opacity: 0.9;
}