/**
 * Custom Floating Cart - Styles
 * Modern, clean CSS with smooth animations
 */

/* ============================================
   Global Styles
   ============================================ */

.cfc-floating-button,
.cfc-drawer,
.cfc-drawer *,
.cfc-btn {
    box-sizing: border-box;
}

/* Prevent body scroll when drawer is open */
body.cfc-drawer-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* ============================================
   Floating Button
   ============================================ */

.cfc-floating-button {
    position: fixed;
    right: 26px;
    bottom: 30px;
    width: auto;
    min-width: 70px;
    height: auto;
    background: var(--wfs-primary-color, #267dc9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999; /* Below dropdowns and menus */
    transition: all 0.3s ease;
    padding: 10px 16px;
}

.cfc-floating-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.cfc-floating-button:active {
    transform: scale(0.98);
}

.cfc-button-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cfc-cart-icon {
    color: #ffffff;
    width: 26px;
    height: 26px;
}

.cfc-cart-count {
    position: absolute;
    top: -12px;
    right: -8px;
    background: #ff4444;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.cfc-cart-total {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1;
}

.cfc-cart-total .woocommerce-Price-amount {
    color: #ffffff;
}

.cfc-cart-total .woocommerce-Price-currencySymbol {
    font-size: 11px;
}

/* ============================================
   Drawer Container
   ============================================ */

.cfc-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    pointer-events: none;
}

.cfc-drawer.cfc-drawer-open {
    pointer-events: auto;
}

/* Ensure Food Store modal sits above the floating cart drawer */
.wfsmodal {
    z-index: 2100;
}

/* ============================================
   Drawer Overlay
   ============================================ */

.cfc-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.cfc-drawer-open .cfc-drawer-overlay {
    opacity: 1;
}

/* ============================================
   Drawer Content
   ============================================ */

.cfc-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cfc-drawer-open .cfc-drawer-content {
    transform: translateX(0);
}

/* ============================================
   Drawer Header
   ============================================ */

.cfc-drawer-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.cfc-drawer-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.cfc-close-button {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cfc-close-button:hover {
    background: #f3f4f6;
    color: #111827;
}

.cfc-close-button svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   Drawer Body
   ============================================ */

.cfc-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    position: relative;
}

.cfc-drawer-body::-webkit-scrollbar {
    width: 8px;
}

.cfc-drawer-body::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.cfc-drawer-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.cfc-drawer-body::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ============================================
   Loading Indicator
   ============================================ */

.cfc-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.cfc-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top-color: var(--wfs-primary-color, #267dc9);
    border-radius: 50%;
    animation: cfc-spin 0.8s linear infinite;
}

@keyframes cfc-spin {
    to { transform: rotate(360deg); }
}

/* Animation when item is added to cart */
@keyframes cfc-bounce-pulse {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.15);
    }
    50% {
        transform: scale(0.95);
    }
    75% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes cfc-badge-pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.4);
    }
    100% {
        transform: scale(1);
    }
}

.cfc-floating-button.cfc-item-added {
    animation: cfc-bounce-pulse 0.6s ease-out;
}

.cfc-floating-button.cfc-item-added .cfc-cart-count {
    animation: cfc-badge-pop 0.4s ease-out;
}

/* ============================================
   Cart Items
   ============================================ */

.cfc-cart-items {
    transition: opacity 0.2s ease;
}

.cfc-cart-item {
    border-radius: 12px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.cfc-item-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    position: relative;
}

.cfc-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

/* Prevent double-tap zoom on product images inside the floating cart */
.cfc-item-image,
.cfc-item-image img {
    touch-action: manipulation;
    -ms-touch-action: manipulation;
}

.cfc-item-qty-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--wfs-primary-color, #267dc9);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
    line-height: 1;
}

.cfc-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cfc-item-name {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.cfc-item-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.cfc-item-row {
    display: flex;
    width: 100%;
    gap: 12px;
}

.cfc-item-row-top {
    align-items: center;
}

.cfc-item-title {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cfc-item-row-middle {
    align-items: flex-start;
}

.cfc-item-price-single {
    font-size: 14px;
    font-weight: 600;
    color: var(--wfs-primary-color, #267dc9);
    flex-shrink: 0;
}

.cfc-item-meta-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
}

.cfc-meta-toggle-checkbox {
    display: none;
}

.cfc-item-meta {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.cfc-item-meta--collapsible {
    max-height: 3.6em;
    overflow: hidden;
    position: relative;
    text-align: left;
}

.cfc-item-meta--collapsible::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 1.4em;
    background: linear-gradient(to bottom, rgba(249, 250, 251, 0), rgba(249, 250, 251, 1));
}

.cfc-meta-toggle-checkbox:checked ~ .cfc-item-meta--collapsible {
    max-height: none;
}

.cfc-meta-toggle-checkbox:checked ~ .cfc-item-meta--collapsible::after {
    display: none;
}

.cfc-item-meta--simple {
    max-height: none;
    overflow: visible;
    position: static;
    text-align: left;
}

.cfc-meta-toggle {
    font-size: 12px;
    color: var(--wfs-primary-color, #267dc9);
    cursor: pointer;
    user-select: none;
    text-decoration: none;
}

.cfc-meta-toggle::after {
    content: "Show more";
}

.cfc-meta-toggle-checkbox:checked ~ .cfc-meta-toggle::after {
    content: "Show less";
}

.cfc-meta-toggle:hover {
    text-decoration: underline;
}

.cfc-item-row-bottom {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Swipe-to-delete background + content */
.cfc-swipe-background {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: transparent;
display: flex;
align-items: center;
justify-content: flex-end;
padding-right: 24px;
color: #ffffff;
opacity: 0;
transition: none;
}

.cfc-swipe-background svg {
width: 22px;
height: 22px;
transition: transform 0.16s ease-out;
}

.cfc-cart-item.cfc-swipe-ready .cfc-swipe-background svg {
transform: scale(1.4);
}

.cfc-swipe-content {
position: relative;
z-index: 1;
background: #f9fafb;
transition: transform 0.18s cubic-bezier(0.22, 0.61, 0.36, 1);
will-change: transform;
display: flex;
gap: 16px;
width: 100%;
box-sizing: border-box;
padding: 16px;
border-radius: 12px;
}

.cfc-cart-item.cfc-swipe-dragging .cfc-swipe-content {
transition: none;
}

.cfc-cart-item.cfc-swipe-removing .cfc-swipe-content {
transition: transform 0.2s cubic-bezier(0.17, 0.89, 0.45, 1.2), opacity 0.2s ease-out;
transform: translateX(-120%);
opacity: 0;
}

.cfc-cart-item.cfc-swipe-exposed .cfc-swipe-background {
background: #ef4444;
opacity: 1;
}

/* Item Meta (Variations, Addons, Special Notes) */
.cfc-item-meta {
font-size: 13px;
color: #6b7280;
line-height: 1.5;
    color: #6b7280;
    line-height: 1.5;
}

.cfc-cart-variation {
    margin: 4px 0;
    font-style: italic;
}

.cfc-cart-addons {
    margin: 4px 0;
}

.cfc-cart-addons p {
    margin: 2px 0;
    font-size: 13px;
}

.cfc-special-note {
    margin: 4px 0;
    padding: 6px 10px;
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    border-radius: 4px;
    font-size: 12px;
    color: #92400e;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.cfc-item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--wfs-primary-color, #267dc9);
}

.cfc-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.cfc-quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 4px;
}

.cfc-qty-btn {
    background: transparent;
    border: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.cfc-qty-btn:hover {
    background: #f3f4f6;
    color: var(--wfs-primary-color, #267dc9);
}

.cfc-qty-btn:active {
    transform: scale(0.9);
}

.cfc-qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    -moz-appearance: textfield;
    appearance: textfield;
    cursor: text;
    outline: none;
}

.cfc-qty-input:focus {
    background: #f9fafb;
    border-radius: 4px;
}

.cfc-quantity-controls,
.cfc-quantity-controls .cfc-qty-btn,
.cfc-quantity-controls .cfc-qty-input {
    touch-action: manipulation;
    -ms-touch-action: manipulation;
}

/* Floating Cart quantity micro-interaction (bounce on number) */
.cfc-quantity-controls .cfc-qty-input.cfc-qty-animate {
    animation: cfcQtyNumberBounce 0.22s ease-out;
}

@keyframes cfcQtyNumberBounce {
    0% {
        font-size: 14px;
    }
    45% {
        font-size: 16px;
    }
    100% {
        font-size: 14px;
    }
}

/* Floating ghost quantity for Custom Floating Cart */
.cfc-qty-ghost {
    position: fixed;
    z-index: 2050;
    padding: 2px 8px;
    border-radius: 999px;
    background-color: #ffffff; /* match cfc-quantity-controls background */
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 0);
    animation: cfcQtyGhostFloat 0.5s ease-out forwards;
}

@keyframes cfcQtyGhostFloat {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }
    36% {
        opacity: 1;
        transform: translate(-50%, -38px);
    }
    84% {
        opacity: 1;
        transform: translate(-50%, -38px);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -38px);
    }
}

.cfc-qty-input::-webkit-outer-spin-button,
.cfc-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cfc-edit-btn {
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--wfs-primary-color, #267dc9);
    transition: all 0.2s ease;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cfc-edit-btn svg,
.cfc-remove-btn svg {
    width: 24px;
    height: 24px;
}

.cfc-edit-btn:hover {
    background: rgba(38, 125, 201, 0.1);
    transform: scale(1.1);
}

.cfc-edit-btn:active {
    transform: scale(0.95);
}

.cfc-remove-btn {
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #ef4444;
    transition: all 0.2s ease;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cfc-remove-btn:hover {
    background: #fee2e2;
}

.cfc-item-subtotal {
    margin-left: auto;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    text-align: right;
}

/* ============================================
   Empty Cart
   ============================================ */

.cfc-empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.cfc-empty-cart p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

.cfc-empty-cart-animation {
    width: 260px;
    max-width: 100%;
    margin: 0 auto 16px;
}

.cfc-empty-cart-animation svg,
.cfc-empty-cart-animation canvas {
    width: 100% !important;
    height: auto !important;
    display: block;
}

/* ============================================
   Error Message
   ============================================ */

.cfc-error {
    text-align: center;
    padding: 40px 20px;
}

.cfc-error p {
    font-size: 15px;
    color: #ef4444;
    margin: 0;
}

/* ============================================
   Drawer Footer
   ============================================ */

.cfc-drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
    background: #ffffff;
}

.cfc-cart-totals {
    margin-bottom: 16px;
}

.cfc-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 15px;
    color: #6b7280;
}

.cfc-total-final {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.cfc-total-final.cfc-total-only {
    border-top: none;
    padding-top: 8px;
    margin-top: 0;
}

.cfc-cart-actions {
    display: flex;
    gap: 12px;
}

.cfc-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.cfc-btn-clear {
    background: #f3f4f6;
    color: #6b7280;
}

.cfc-btn-clear:hover {
    background: #e5e7eb;
    color: #111827;
}

.cfc-btn-checkout {
    background: var(--wfs-primary-color, #267dc9);
    color: #ffffff;
}

.cfc-btn.cfc-btn-loading {
    opacity: 0.7;
    cursor: default;
}

.cfc-btn.cfc-btn-loading::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #ffffff;
    animation: cfcBtnSpinner 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes cfcBtnSpinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.cfc-btn.cfc-btn-loading-success::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border-radius: 999px;
    background: #10b981;
    border: none;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    animation: none;
}

.cfc-btn-checkout:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(38, 125, 201, 0.3);
}

.cfc-btn:active {
    transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
    .cfc-drawer-content {
        max-width: 400px;
    }
    
    .cfc-floating-button {
        width: 56px;
        height: 56px;
        right: 20px;
        bottom: 40px;
    }
    
    .cfc-cart-icon {
        width: 26px;
        height: 26px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .cfc-drawer-content {
        max-width: 100%;
    }
    
    .cfc-drawer-header {
        padding: 16px 20px;
    }
    
    .cfc-drawer-header h3 {
        font-size: 18px;
    }
    
    .cfc-drawer-body {
        padding: 16px 20px;
    }
    
    .cfc-drawer-footer {
        padding: 16px 20px;
    }
    
    .cfc-swipe-content {
        padding: 12px;
    }
    
    .cfc-item-image {
        width: 70px;
        height: 70px;
    }
    
    .cfc-item-qty-badge {
        font-size: 10px;
        min-width: 20px;
        height: 20px;
        border-radius: 10px;
        padding: 0 5px;
        top: 5px;
        right: 5px;
    }
    
    .cfc-item-name {
        font-size: 19px;
        padding-right: 0;
    }
    
    .cfc-item-price {
        font-size: 13px;
    }
    
    .cfc-item-subtotal {
        position: static;
        margin-top: 8px;
        font-size: 14px;
    }
    
    .cfc-cart-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    .cfc-btn {
        width: 100%;
        display: block;
        margin: 0;
        box-sizing: border-box;
    }
    
    .cfc-floating-button {
        min-width: 65px;
        right: 18px;
        bottom: 40px;
        padding: 8px 14px;
    }
    
    .cfc-cart-icon {
        width: 22px;
        height: 22px;
    }
    
    .cfc-cart-count {
        font-size: 12px;
        width: 24px;
        height: 24px;
        top: -12px;
        right: -8px;
    }
    
    .cfc-cart-total {
        font-size: 12px;
    }
}


/* Very small mobile */
@media (max-width: 360px) {
    .cfc-swipe-content {
        padding: 10px 5px 10px 10px;
    }
    
    .cfc-item-details {
        gap: 6px;
    }
    
    .cfc-item-controls {
        gap: 6px;
    }
    
    .cfc-quantity-controls {
        gap: 3px;
        padding: 2px;
    }
    
    .cfc-qty-btn {
        width: 22px;
        height: 22px;
    }
    
    .cfc-qty-btn svg {
        width: 12px;
        height: 12px;
    }
    
    .cfc-qty-input {
        width: 28px;
        font-size: 12px;
    }
    
    .cfc-edit-btn,
    .cfc-remove-btn {
        padding: 5px;
    }
    
    .cfc-edit-btn svg,
    .cfc-remove-btn svg {
        width: 17px;
        height: 17px;
    }
    
    .cfc-item-subtotal {
        right: 6px;
        font-size: 12px;
    }
    
    .cfc-total-final {
        font-size: 16px;
    }
}

/* ============================================
   Accessibility
   ============================================ */

.cfc-floating-button:focus,
.cfc-close-button:focus,
.cfc-qty-btn:focus,
.cfc-remove-btn:focus,
.cfc-btn:focus {
    outline: 2px solid var(--wfs-primary-color, #267dc9);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .cfc-floating-button,
    .cfc-drawer-overlay,
    .cfc-drawer-content,
    .cfc-close-button,
    .cfc-qty-btn,
    .cfc-remove-btn,
    .cfc-btn,
    .cfc-cart-items {
        transition: none;
    }
    
    .cfc-spinner {
        animation: none;
    }
}

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

/* ============================================
   Store Closed Modal
   ============================================ */

.cfc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cfc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cfc-modal-open .cfc-modal-overlay {
    opacity: 1;
}

.cfc-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.cfc-modal-open .cfc-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.cfc-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6b7280;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cfc-modal-close:hover {
    color: #111827;
}

.cfc-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef2f2;
    border-radius: 50%;
    color: #ef4444;
}

.cfc-modal-icon svg {
    width: 48px;
    height: 48px;
}

.cfc-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
}

.cfc-modal-message {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.cfc-modal-btn-ok {
    width: 100%;
    margin: 0;
}

/* Modal responsive */
@media (max-width: 480px) {
    .cfc-modal-content {
        padding: 24px;
        max-width: 340px;
    }
    
    .cfc-modal-title {
        font-size: 20px;
    }
    
    .cfc-modal-message {
        font-size: 14px;
    }
    
    .cfc-modal-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }
    
    .cfc-modal-icon svg {
        width: 40px;
        height: 40px;
    }
}
