.hfc-button {
    position: fixed;
    left: 25px;
    bottom: 25px;
    z-index: 99990;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: #000;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}
.hfc-button:hover {
    transform: translateY(-2px);
}
.hfc-button-icon {
    width: 24px;
    height: 24px;
}
.hfc-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 25px;
    height: 25px;
    padding: 0 5px;
    border-radius: 25px;
    background: #e11d48;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 25px;
    text-align: center;
}
.hfc-count--empty {
    display: none;
}

.hfc-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.hfc-overlay.hfc-is-open {
    opacity: 1;
}

.hfc-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100001;
    width: 390px;
    max-width: 90vw;
    height: 100%;
    background: #fff;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
    font-size: 14px;
    color: #1f2937;
}
.hfc-panel.hfc-is-open {
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
}
body.hfc-locked {
    overflow: clip;
}

body.admin-bar .hfc-panel {
    top: 32px;
    height: calc(100% - 32px);
}
@media screen and (max-width: 782px) {
    body.admin-bar .hfc-panel {
        top: 46px;
        height: calc(100% - 46px);
    }
}
@media screen and (max-width: 600px) {
    body.admin-bar .hfc-panel {
        top: 0;
        height: 100%;
    }
}

.hfc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #eceef1;
}
.hfc-head-title {
    font-size: 17px;
    font-weight: 700;
}
.hfc-close {
    border: none;
    background: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}

.hfc-notices {
    padding: 0 18px;
}
.hfc-notice {
    margin: 10px 0 0;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}
.hfc-notice-error {
    background: #fdecec;
    color: #b42318;
}
.hfc-notice-success {
    background: #e6f6ec;
    color: #1a7f37;
}

.hfc-fs-wrap:empty {
    display: none;
}
.hfc-fs-wrap{
    padding: 0 18px;
    margin-top: 15px;
}
.hfc-fs {
    padding: 12px 18px;
    background: #f7f8fa;
    border-bottom: 1px solid #eceef1;
    border-radius: 5px;
}
.hfc-fs--done {
    background: #e8f6ec;
    border-color: #bfe3c9;
}
.hfc-fs-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    line-height: 1.4;
}
.hfc-fs-msg + .hfc-fs-bar {
    margin-top: 10px;
}
.hfc-fs-icon {
    flex: 0 0 auto;
    display: flex;
}
.hfc-fs-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}
.hfc-fs-bar {
    height: 8px;
    border-radius: 5px;
    background: #e5e7eb;
    overflow: hidden;
}
.hfc-fs-bar > span {
    display: block;
    height: 100%;
    background: #e59544;
    transition: width 0.3s ease;
}
.hfc-fs--done .hfc-fs-bar > span {
    background: #1f7a3a;
}

.hfc-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 6px 18px 18px;
}

.hfc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 18px;
    text-align: center;
    color: #6b7280;
}
.hfc-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 104px;
    margin-bottom: 22px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #9ca3af;
}
.hfc-empty-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #111827;
}
.hfc-empty-sub {
    margin: 6px 0 0;
}
.hfc-btn-shop {
    margin-top: 22px;
}

.hfc-panel.hfc-is-empty .hfc-fs-wrap,
.hfc-panel.hfc-is-empty .hfc-footer {
    display: none;
}
.hfc-item {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f1f3;
}
.hfc-item-thumb {
    flex: none;
}
.hfc-item-thumb img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}
.hfc-item-info {
    flex: 1 1 auto;
    min-width: 0;
}
.hfc-item-name {
    display: block;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    margin-bottom: 4px;
}
.hfc-item-promo {
    display: inline-block;
    background: #000;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.hfc-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hfc-item-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    overflow: hidden;
}
.hfc-qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #f3f4f6;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: #374151;
}
.hfc-qty-input {
    width: 40px;
    height: 28px;
    border: none !important;
    text-align: center;
    font-size: 12px;
    -moz-appearance: textfield;
}
.hfc-qty-input::-webkit-outer-spin-button,
.hfc-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.hfc-item-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}
.hfc-item-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.hfc-item-price {
    font-weight: 700;
    white-space: nowrap;
    line-height: 16px;
}
.hfc-item-price-regular,
.hfc-item-price-regular .woocommerce-Price-amount {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    line-height: 15px;
    margin-bottom: -2px;
}
.hfc-item-off {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    background: #e8f6ec;
    color: #1f7a3a;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    white-space: nowrap;
}
.hfc-item-remove {
    padding: 0;
    border: none;
    background: none;
    color: #6b7280;
    font-size: 12px;
    line-height: 1;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}
.hfc-item-remove:hover {
    color: #e11d48;
}

.hfc-suggested:empty {
    display: none;
}
.hfc-suggested-title {
    font-weight: 700;
    margin: 16px 0 10px;
    font-size: 13px;
}
.hfc-suggested-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}
.hfc-suggested-thumb {
    flex: none;
}
.hfc-suggested-thumb img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 5px;
    display: block;
}
.hfc-suggested-info {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
}
.hfc-suggested-name {
    display: block;
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
}
.hfc-suggested-price {
    color: #6b7280;
    font-size: 12px;
}
.hfc-suggested-add {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 5px;
    background: #000;
    color: #fff !important;
    text-decoration: none;
    cursor: pointer;
}

.hfc-footer {
    border-top: 1px solid #eceef1;
    padding: 14px 18px 18px;
}
.hfc-coupon-toggle__summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #6b7280;
    list-style: none;
}
.hfc-coupon-toggle__summary::-webkit-details-marker {
    display: none;
}
.hfc-coupon-form {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.hfc-coupon-code {
    flex: 1 1 auto;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 13px;
}
button[type="submit"].hfc-coupon-apply {
    height: 38px;
    padding: 0 14px;
    border: 1px solid #000;
    border-radius: 4px;
    background: #fff;
    color: #000;
    font-weight: 600;
    cursor: pointer;
}
button[type="submit"].hfc-coupon-apply:hover {
    background: #fff;
    border-color: #666;
    color: #666;
}
.hfc-coupon-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 10px;
    padding: 0;
}
.hfc-coupon-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.hfc-coupon-amount {
    color: #1f7a3a;
    font-weight: 600;
    white-space: nowrap;
}
.hfc-coupon-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 4px 3px 10px;
    border: 1px solid #bfe3c9;
    border-radius: 100px;
    background: #e8f6ec;
    line-height: 1;
}
.hfc-coupon-badge__code {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #1f7a3a;
}
.hfc-coupon-badge__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #bfe3c9;
    color: #1f7a3a;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.hfc-coupon-badge__remove:hover {
    background: #666;
    color: #fff;
}
.hfc-savings-wrap:empty {
    display: none;
}
.hfc-savings {
    color: #1a7f37;
    font-size: 13px;
    text-align: right;
}
.hfc-totals {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}
.hfc-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}
.hfc-btn {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.hfc-btn:hover {
    opacity: 0.9;
}
.hfc-btn-checkout {
    background: #000;
    color: #fff;
}

.hfc-panel.hfc-loading .hfc-body {
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 480px) {
    .hfc-panel {
        width: 100%;
        max-width: 100%;
    }
}
