/*
 * Genuino Fast Cart Styles - Optimized CSS
 * Mobile-first approach with responsive breakpoints at 544px, 768px, 992px and 1200px
 */

/* -------------------------------- */
/* Base Layout & Container Styles   */
/* -------------------------------- */

.gfc-off-canvas-panel {
    position: fixed !important;
    right: 0;
    top: 0;
    width: 100%;
    /* Mobile first - full width on small screens */
    max-width: 100%;
    height: 100%;
    padding: 0;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
    margin-block-start: 0;
    display: flex;
    flex-direction: column;
}

.gfc-off-canvas-panel.open {
    transform: translateX(0);
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.5);
}

/* Overlay when panel is open */
.gfc-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    animation: fadeIn 0.3s;
}

.gfc-overlay.open {
    display: block;
}

/* Panel header */
.gfc-off-canvas-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0.7rem;
    /* Mobile first sizing */
    border-bottom: 1px solid #eee;
    position: relative;
    flex-wrap: nowrap;
}

.gfc-off-canvas-panel .panel-header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    margin-left: auto;
}

.gfc-off-canvas-panel .panel-header h2 {
    font-size: 1.1rem;
    /* Mobile first sizing */
    margin: 0;
    font-weight: 600;
    flex: 1;
    padding-right: 10px;
    max-width: 50%;
    /* Mobile first sizing */
}

/* Panel content */
.panel-content {
    padding: 1rem;
    /* Mobile first sizing */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100% - 50px - 150px);
    /* Subtract header and footer heights */
}

/* Panel footer */
.panel-footer {
    padding: 0.4rem 0.6rem;
    /* Mobile first - smallest sizing */
    border-top: 1px solid #eee;
    background-color: #fff;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

/* -------------------------------- */
/* Shopping Cart Icon               */
/* -------------------------------- */

.gfc-off-canvas-panel .cart-icon {
    font-size: 1.6rem;
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
}

.gfc-off-canvas-panel .cart-icon .item-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f00;
    color: white;
    font-size: 0.7rem;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* -------------------------------- */
/* Close Panel Button               */
/* -------------------------------- */

.gfc-off-canvas-panel .close-panel {
    cursor: pointer;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    opacity: 0.6;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
}

.gfc-off-canvas-panel .close-panel:hover {
    opacity: 1;
}

/* -------------------------------- */
/* Period Selection Form            */
/* -------------------------------- */

#gfc-period-form label {
    display: block;
    border: 1px solid #ccc;
    padding: 0.6em 0.8em;
    /* Mobile first sizing */
    margin-bottom: 0.4rem;
    /* Mobile first sizing */
    position: relative;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    /* Mobile first sizing */
}

#gfc-period-form label:hover {
    background-color: #f9f9f9;
}

#gfc-period-form label .price {
    font-weight: bold;
    font-size: 14px;
    /* Mobile first sizing */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* When the original price is displayed inside a period label */
#gfc-period-form label .price .original-price {
    font-size: 13px;
    margin-right: 0;
    margin-bottom: 3px;
}

#gfc-period-form label .price .discounted-price {
    font-size: 15px;
}

label.gfc-period-label.selected-label {
    background-color: #e8f9f9;
    border-color: #00c4c4;
    box-shadow: 0 0 0 2px rgba(0, 196, 196, 0.2);
}

/* Annual plan styling */
#gfc-period-form label.annual-plan {
    background: linear-gradient(135deg, #00c4c4 0%, #00a4a4 100%);
    color: white;
    border-color: #009494;
    padding-bottom: 1.6rem;
    /* Mobile first sizing */
    box-shadow: 0 4px 12px rgba(0, 196, 196, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

#gfc-period-form label.annual-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#gfc-period-form label.annual-plan .price {
    font-weight: bold;
    color: white;
    font-size: 1.1em;
    margin-bottom: 1rem;
}

#gfc-period-form label.annual-plan>div:first-child {
    margin-bottom: 1rem;
}

/* Discount badge & info */
#gfc-period-form label .discount-badge {
    position: absolute;
    bottom: 0.4rem;
    /* Mobile first sizing */
    right: 0.4rem;
    /* Mobile first sizing */
    background-color: #FFDB58;
    color: #000;
    padding: 0.15rem 0.4rem;
    /* Mobile first sizing */
    font-size: 0.65rem;
    /* Mobile first sizing */
    font-weight: bold;
    border-radius: 4px;
    box-shadow: -1px 1px 3px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    visibility: visible;
    display: block;
    z-index: 5;
}

#gfc-period-form label .discount-info {
    position: absolute;
    bottom: 0.4rem;
    /* Mobile first sizing */
    left: 0.4rem;
    /* Mobile first sizing */
    right: auto;
    text-align: left;
    font-size: 0.75rem;
    /* Mobile first sizing */
    opacity: 0.9;
    padding: 0;
    line-height: 1.2;
    max-width: 60%;
    /* Mobile first sizing */
    box-sizing: border-box;
    visibility: visible;
    display: block;
    z-index: 5;
}

/* -------------------------------- */
/* Quantity Controls                */
/* -------------------------------- */

.gfc-quantity-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 5px;
    /* Mobile first sizing */
    margin-bottom: 0.5em;
    /* Mobile first sizing */
    padding-top: 0.15rem;
    /* Mobile first sizing */
    padding-bottom: 0.15rem;
    /* Mobile first sizing */
    position: relative;
    flex-wrap: nowrap;
    flex-direction: row;
}

.gfc-quantity-controls label,
.gfc-quantity-controls .mailbox-label {
    font-weight: bold;
    font-size: 14px;
    /* Mobile first sizing */
    margin-right: auto;
    white-space: nowrap;
    margin-bottom: 0;
}

.gfc-quantity-controls>div {
    margin-top: 0;
    justify-content: flex-end;
}

/* Controls wrapper */
.controls-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

/* Quantity buttons */
.gfc-quantity-controls button {
    padding: 0;
    margin: 0;
    background-color: #f1f1f1;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    color: #333;
    font-size: 18px;
    /* Mobile first sizing */
    width: 38px;
    /* Mobile first sizing */
    height: 38px;
    /* Mobile first sizing */
    min-width: 38px;
    /* Mobile first sizing */
    min-height: 38px;
    /* Mobile first sizing */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
}

.gfc-quantity-controls button:hover {
    opacity: 0.9;
    background-color: #e1e1e1;
}

.gfc-quantity-controls button:active,
.gfc-quantity-controls button.active {
    transform: scale(0.95);
}

/* Quantity inputs */
.gfc-quantity-controls input[type="number"] {
    text-align: center;
    width: 50px;
    /* Mobile first sizing */
    border: 1px solid #ccc;
    background-color: #fff;
    padding: 0 12px;
    height: 38px;
    /* Mobile first sizing */
    font-size: 16px;
    /* Mobile first sizing */
    border-radius: 4px;
    -moz-appearance: textfield;
    -webkit-appearance: textfield;
    appearance: textfield;
}

/* Hide the default spin buttons on inputs of type number */
.gfc-quantity-controls input[type="number"]::-webkit-inner-spin-button,
.gfc-quantity-controls input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* -------------------------------- */
/* Price Display                    */
/* -------------------------------- */

.gfc-price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 12px;
    /* Mobile first sizing */
    margin-top: 5px;
    /* Mobile first sizing */
    margin-bottom: 5px;
    /* Mobile first sizing */
    background-color: #f8f9fa;
    background: linear-gradient(to right, #f8f9fa, #f0f5f5);
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    font-size: 16px;
    /* Mobile first sizing */
    width: 100%;
    box-sizing: border-box;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.3s;
}

.total-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding-right: 10px;
}

.items-count {
    font-size: 14px;
    color: #666;
}

.total-label {
    font-weight: bold;
    color: #333;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-amount {
    font-size: 22px;
    font-weight: bold;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transition: color 0.3s;
    min-width: 120px;
    /* Ensure consistent width */
    text-align: right;
}

.original-price {
    font-size: 16px;
    text-decoration: line-through;
    color: #888;
    font-weight: normal;
    margin-right: 8px;
    display: inline-block;
    position: relative;
}

.original-price:after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background-color: rgba(200, 0, 0, 0.4);
}

.discounted-price {
    font-size: 18px;
    color: #00a4a4;
    /* Match the brand color used in other elements */
    font-weight: bold;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    background-color: rgba(0, 164, 164, 0.08);
}

.discount-applied {
    color: #00a4a4;
    /* Match the brand color for consistency */
    font-size: 14px;
    font-weight: bold;
    display: none;
    /* Hidden as requested */
    background: rgba(0, 164, 164, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
}

.price-container {
    margin-bottom: 8px;
    /* Mobile first sizing */
    width: 100%;
}

/* Price update animation */
.price-updated {
    animation: flash 0.8s;
}

/* -------------------------------- */
/* Checkout Button                  */
/* -------------------------------- */

#gfc-checkout-button {
    background-color: #59B210;
    color: white;
    padding: 10px 15px;
    /* Mobile first sizing */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 5px;
    /* Mobile first sizing */
    width: 100%;
    transition: background-color 0.3s;
    font-size: 18px;
}

#gfc-checkout-button:hover:not(:disabled) {
    background-color: #4a9c0e;
}

#gfc-checkout-button:disabled {
    background-color: #cccccc;
    color: #ffffff;
    cursor: not-allowed;
}

#gfc-checkout-button.loading {
    position: relative;
    color: transparent;
}

#gfc-checkout-button.loading:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s infinite linear;
}

/* -------------------------------- */
/* Payment Methods                  */
/* -------------------------------- */

.gfc-payment-methods {
    display: flex;
    justify-content: center;
    gap: 10px;
    /* Mobile first sizing */
    margin: 8px 0;
    /* Mobile first sizing */
}

.gfc-payment-methods img {
    height: 25px;
    /* Mobile first sizing */
    width: auto;
}

/* -------------------------------- */
/* Marketing Message                */
/* -------------------------------- */

.gfc-marketing-message {
    margin: 15px 0;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    padding: 10px;
    border-radius: 4px;
    background-color: #f9f9f9;
    border-left: 3px solid #00c4c4;
    display: none;
    /* Hidden on mobile */
}

/* -------------------------------- */
/* Button Styles                    */
/* -------------------------------- */

.gfc-button {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    color: inherit;
}

.gfc-button-wrapper {
    text-align: center;
}

.gfc-button-wrapper .wp-block-button__link.alignleft,
.gfc-button-wrapper .wp-block-button__link.alignright {
    text-align: center;
    float: none;
    margin: 0;
}

/* Gutenberg block button styling */
.gfc-button-wrapper {
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
}

.gfc-button-wrapper .gfc-button {
    min-width: 4em;
    width: auto;
    max-width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.75em 1.5em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

/* Responsive adjustments for very long text */
@media (max-width: 768px) {
    .gfc-button-wrapper .gfc-button {
        white-space: normal;
        line-height: 1.4;
        padding: 0.75em 1em;
    }
}

/* -------------------------------- */
/* Animations                       */
/* -------------------------------- */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes flash {
    0% {
        background-color: #f9f9f9;
        transform: scale(1);
    }

    30% {
        background-color: rgba(0, 164, 164, 0.15);
        transform: scale(1.02);
    }

    70% {
        background-color: rgba(0, 164, 164, 0.15);
        transform: scale(1.02);
    }

    100% {
        background-color: #f8f9fa;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation for panel content */
.gfc-off-canvas-panel h2,
.gfc-off-canvas-panel form,
.gfc-off-canvas-panel .gfc-quantity-controls,
.gfc-off-canvas-panel .gfc-price-display,
.gfc-off-canvas-panel #gfc-checkout-button {
    animation: slideUp 0.4s ease;
}

/* Add a highlight effect when price changes */
.gfc-price-display.price-updated .total-amount {
    color: #28a745;
}

/* -------------------------------- */
/* Client Information Form           */
/* -------------------------------- */

.gfc-client-info-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
}

.gfc-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gfc-form-field label {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.gfc-form-field input {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.gfc-form-field input:focus {
    outline: none;
    border-color: #00c4c4;
    box-shadow: 0 0 0 2px rgba(0, 196, 196, 0.2);
}

.gfc-form-field input.error {
    border-color: #e44d26;
}

.gfc-form-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.gfc-back-button {
    background-color: #f1f1f1;
    color: #333;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    flex: 1;
    transition: background-color 0.3s;
}

.gfc-back-button:hover {
    background-color: #e1e1e1;
}

.gfc-continue-button {
    background-color: #59B210;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    flex: 2;
    transition: background-color 0.3s;
}

.gfc-continue-button:hover {
    background-color: #4a9c0e;
}

.gfc-continue-button.loading {
    position: relative;
    color: transparent;
}

.gfc-continue-button.loading:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s infinite linear;
}

/* Email validation error styling */
.gfc-form-field input.gfc-error {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
    background-color: #fff5f5;
}

.gfc-form-field input.gfc-error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
    outline: none;
}

.gfc-field-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 6px;
    padding: 8px 12px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    display: flex;
    align-items: center;
    font-weight: 500;
    line-height: 1.4;
}

.gfc-field-error::before {
    content: "⚠";
    margin-right: 8px;
    font-size: 16px;
    color: #721c24;
}

/* Media query adjustments for the form */
@media (min-width: 544px) {
    .gfc-client-info-form {
        gap: 2rem;
        padding: 1.5rem 0;
    }

    .gfc-form-field label {
        font-size: 15px;
    }
}

@media (min-width: 768px) {
    .gfc-form-buttons {
        padding: 1.5rem 0;
    }
}

/* -------------------------------- */
/*  Media Queries                   */
/* -------------------------------- */

/* Tablet and up (min-width: 544px) */
@media (min-width: 544px) {

    /* Period labels */
    #gfc-period-form label {
        margin-bottom: 0.5rem;
        padding: 0.75em 1em;
    }

    /* Panel footer */
    .panel-footer {
        padding: 0.8rem;
    }

    /* Quantity controls */
    .gfc-quantity-controls button {
        width: 35px;
        height: 35px;
        min-width: 35px;
        min-height: 35px;
        font-size: 16px;
    }

    .gfc-quantity-controls input[type="number"] {
        height: 35px;
        width: 45px;
        font-size: 15px;
    }

    /* Discount badge and info */
    #gfc-period-form label .discount-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
        bottom: 0.7rem;
        right: 0.7rem;
    }

    #gfc-period-form label .discount-info {
        font-size: 0.7rem;
        bottom: 0.7rem;
        left: 0.7rem;
        max-width: 55%;
    }

    /* Annual plan spacing */
    #gfc-period-form label.annual-plan {
        padding-bottom: 1.8rem;
    }

    /* Price display */
    .gfc-price-display {
        padding: 10px 15px;
        font-size: 16px;
    }

    .total-amount {
        font-size: 20px;
    }

    /* Show marketing message */
    .gfc-marketing-message {
        display: block;
    }
}

/* Medium devices and up (min-width: 768px) */
@media (min-width: 768px) {

    /* Panel sizing */
    .gfc-off-canvas-panel {
        max-width: 500px;
    }

    /* Panel spacing */
    .panel-footer {
        padding: 1rem;
    }

    .gfc-off-canvas-panel .panel-header {
        padding: 1rem;
    }

    .gfc-off-canvas-panel .panel-header h2 {
        font-size: 1.2rem;
        max-width: 60%;
    }

    .panel-content {
        padding: 1rem;
    }

    /* Payment methods */
    .gfc-payment-methods {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .gfc-payment-methods img {
        height: 30px;
    }
}

/* Large devices and up (min-width: 992px) */
@media (min-width: 992px) {

    /* Panel sizing */
    .gfc-off-canvas-panel {
        max-width: 550px;
    }

    /* Panel spacing */
    .panel-footer {
        padding: 1.2rem;
    }

    /* Quantity controls */
    .gfc-quantity-controls {
        margin-top: 0.25rem;
        margin-bottom: 0.25rem;
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    /* Panel header */
    .gfc-off-canvas-panel .panel-header {
        padding: 1.2rem;
    }

    .gfc-off-canvas-panel .panel-header h2 {
        font-size: 1.3rem;
    }

    /* Panel content */
    .panel-content {
        padding: 1.2rem;
        max-height: calc(100% - 60px - 180px);
    }

    /* Price display */
    .gfc-price-display {
        padding: 12px 18px;
        font-size: 17px;
    }

    .total-amount {
        font-size: 21px;
    }

    /* Payment methods */
    .gfc-payment-methods img {
        height: 32px;
    }

    /* Checkout button */
    #gfc-checkout-button {
        padding: 12px 20px;
        margin-top: 8px;
    }

    /* Button alignment */
    .gfc-button-wrapper .wp-block-button__link.alignleft {
        text-align: left;
        float: left;
        margin-right: 1.5em;
    }

    .gfc-button-wrapper .wp-block-button__link.alignright {
        text-align: right;
        float: right;
        margin-left: 1.5em;
    }
}

/* Extra large devices and up (min-width: 1200px) */
@media (min-width: 1200px) {

    /* Panel sizing */
    .gfc-off-canvas-panel {
        max-width: 620px;
    }

    /* Panel spacing */
    .panel-footer {
        padding: 1.5rem;
    }

    /* Panel header */
    .gfc-off-canvas-panel .panel-header h2 {
        font-size: 1.5rem;
    }

    /* Panel content */
    .panel-content {
        padding: 1.5rem;
    }

    /* Price display */
    .gfc-price-display {
        padding: 15px 20px;
        margin-top: 10px;
        margin-bottom: 5px;
        font-size: 18px;
    }

    .total-amount {
        font-size: 22px;
    }
}

/* ================================ */
/* Floating Cart Button Styles     */
/* ================================ */

/* ================================ */
/* Floating Cart Button Styles     */
/* ================================ */

.gfc-floating-cart-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #00c4c4 0%, #00a0a0 100%);
    color: white;
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 4px 20px rgba(0, 196, 196, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9997;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.gfc-floating-cart-button.visible {
    pointer-events: auto;
}

.gfc-floating-cart-button.animate-in {
    transform: translateY(0);
    opacity: 1;
}

.gfc-floating-cart-button:hover,
.gfc-floating-cart-button.hover,
.gfc-floating-cart-button:focus {
    background: linear-gradient(135deg, #00a0a0 0%, #008080 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 196, 196, 0.4);
    outline: none;
}

.gfc-floating-cart-button:active {
    transform: translateY(-1px);
    transition-duration: 0.1s;
}

.gfc-floating-cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.gfc-floating-cart-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.gfc-floating-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gfc-floating-cart-text {
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .gfc-floating-cart-button {
        bottom: 15px;
        right: 15px;
        padding: 14px 18px;
        border-radius: 50px;
        font-size: 15px;
        gap: 8px;
    }

    .gfc-floating-cart-button:hover,
    .gfc-floating-cart-button:focus {
        transform: translateY(0);
        /* Reduce hover effects on mobile */
    }

    .gfc-floating-cart-text {
        display: none;
        /* Hide text on very small screens */
    }

    .gfc-floating-cart-button {
        width: 56px;
        height: 56px;
        padding: 16px;
        border-radius: 50%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .gfc-floating-cart-button {
        bottom: 10px;
        right: 10px;
        width: 52px;
        height: 52px;
        padding: 14px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .gfc-floating-cart-button {
        border: 2px solid currentColor;
    }

    .gfc-floating-cart-count {
        border: 3px solid white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .gfc-floating-cart-button {
        transition: none;
    }

    .gfc-floating-cart-button.animate-in {
        transform: translateY(0);
        opacity: 1;
        transition: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .gfc-floating-cart-button {
        background: #0073aa;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .gfc-floating-cart-button:hover,
    .gfc-floating-cart-button.hover,
    .gfc-floating-cart-button:focus {
        background: #005a87;
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    }
}

/* Integration with existing cart panel */
body.gfc-cart-open .gfc-floating-cart-button {
    opacity: 0.7;
    pointer-events: none;
}

/* Z-index management to avoid conflicts */
.gfc-floating-cart-button {
    z-index: 9997;
    /* Below cart panel (9999) but above most content */
}

/* Smooth appearance animation */
@keyframes gfcFloatIn {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.gfc-floating-cart-button.animate-in {
    animation: gfcFloatIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* ...existing styles... */