/**
 * Bokun Shopping Cart Styles
 */

/* ==========================================
   ADD TO CART BUTTON
   ========================================== */
.bokun-add-to-cart-wrapper {
    display: inline-block;
}

.bokun-add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    color: #ffffff;
    background-color: #3b82f6;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bokun-add-to-cart-btn:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.bokun-add-to-cart-btn:active {
    transform: translateY(0);
}

.bokun-add-to-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.bokun-add-to-cart-btn.bokun-loading {
    pointer-events: none;
}

.bokun-btn-icon {
    display: inline-flex;
    align-items: center;
    font-size: 18px;
}

.bokun-btn-loader {
    display: inline-flex;
    align-items: center;
}

/* ==========================================
   CART ICON & BADGE
   ========================================== */
.bokun-cart-icon-wrapper {
    position: relative;
    display: inline-block;
}

.bokun-cart-icon-wrapper.bokun-cart-floating {
    position: fixed;
    z-index: 9999;
}

.bokun-cart-icon-wrapper.bokun-position-top-left {
    top: 20px;
    left: 20px;
}

.bokun-cart-icon-wrapper.bokun-position-top-right {
    top: 20px;
    right: 20px;
}

.bokun-cart-icon-wrapper.bokun-position-bottom-left {
    bottom: 20px;
    left: 20px;
}

.bokun-cart-icon-wrapper.bokun-position-bottom-right {
    bottom: 20px;
    right: 20px;
}

.bokun-cart-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background-color: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bokun-cart-icon-btn:hover {
    background-color: #2563eb;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.bokun-cart-icon-btn:active {
    transform: scale(0.98);
}

.bokun-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    border-radius: 10px;
    border: 2px solid #ffffff;
}

/* ==========================================
   CART DROPDOWN
   ========================================== */
.bokun-cart-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 350px;
    max-height: 500px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 10000;
    display: flex;
    flex-direction: column;
}

.bokun-cart-floating.bokun-position-top-left .bokun-cart-dropdown,
.bokun-cart-floating.bokun-position-bottom-left .bokun-cart-dropdown {
    right: auto;
    left: 0;
}

.bokun-cart-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background-color: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.bokun-cart-dropdown-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.bokun-cart-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 4px;
    font-size: 24px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bokun-cart-close:hover {
    background-color: #e5e7eb;
    color: #111827;
}

/* ==========================================
   CART ITEMS
   ========================================== */
.bokun-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    max-height: 350px;
}

.bokun-cart-items::-webkit-scrollbar {
    width: 6px;
}

.bokun-cart-items::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.bokun-cart-items::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.bokun-cart-items::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.bokun-cart-empty {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.bokun-cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 8px;
    position: relative;
    transition: all 0.2s ease;
}

.bokun-cart-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bokun-cart-item:last-child {
    margin-bottom: 0;
}

.bokun-cart-item-image-wrapper {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f3f4f6;
}

.bokun-cart-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bokun-cart-item-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
}

.bokun-cart-item-details {
    flex: 1;
    min-width: 0;
}

.bokun-cart-item-title {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bokun-cart-item-booking-date {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
    line-height: 1.4;
}

.bokun-cart-item-participants {
    font-size: 12px;
    color: #059669;
    font-weight: 500;
    margin-bottom: 6px;
    padding: 3px 8px;
    background-color: #d1fae5;
    border-radius: 4px;
    display: inline-block;
}

.bokun-cart-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.bokun-cart-item-price {
    font-size: 13px;
    font-weight: 600;
    color: #3b82f6;
}

.bokun-cart-item-quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bokun-cart-item-quantity-wrapper label {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.bokun-cart-item-quantity {
    width: 50px;
    padding: 4px 8px;
    font-size: 13px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    text-align: center;
}

.bokun-cart-item-quantity-display {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.bokun-cart-item-quantity:focus {
    outline: none;
    border-color: #3b82f6;
}

.bokun-cart-item-subtotal {
    font-size: 12px;
    color: #6b7280;
}

.bokun-cart-item-subtotal strong {
    color: #111827;
    font-weight: 600;
}

.bokun-cart-item-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 18px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bokun-cart-item-remove:hover {
    background-color: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
}

/* ==========================================
   CART FOOTER
   ========================================== */
.bokun-cart-footer {
    padding: 16px 20px;
    background-color: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.bokun-cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    color: #6b7280;
}

.bokun-cart-total-amount {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.bokun-cart-actions {
    display: flex;
    gap: 8px;
}

.bokun-cart-checkout-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background-color: #10b981;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bokun-cart-checkout-btn:hover {
    background-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.bokun-cart-clear {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bokun-cart-clear:hover {
    background-color: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
}

/* ==========================================
   NOTIFICATIONS
   ========================================== */
.bokun-cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 350px;
    padding: 16px 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.bokun-cart-notification.bokun-notification-show {
    transform: translateX(0);
    opacity: 1;
}

.bokun-notification-content {
    font-size: 14px;
    color: #111827;
    line-height: 1.5;
}

.bokun-notification-success {
    border-left: 4px solid #10b981;
}

.bokun-notification-error {
    border-left: 4px solid #ef4444;
}

.bokun-notification-info {
    border-left: 4px solid #3b82f6;
}

/* ==========================================
   LOADING STATE
   ========================================== */
.bokun-cart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.bokun-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: bokun-spin 0.8s linear infinite;
}

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

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 480px) {
    .bokun-cart-dropdown {
        width: calc(100vw - 40px);
        max-width: 350px;
    }

    .bokun-cart-floating.bokun-position-top-right .bokun-cart-dropdown,
    .bokun-cart-floating.bokun-position-bottom-right .bokun-cart-dropdown {
        right: -20px;
    }

    .bokun-cart-floating.bokun-position-top-left .bokun-cart-dropdown,
    .bokun-cart-floating.bokun-position-bottom-left .bokun-cart-dropdown {
        left: -20px;
    }

    .bokun-cart-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* ==========================================
   ELEMENTOR EDITOR STYLES
   ========================================== */
.bokun-widget-notice {
    padding: 20px;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    font-size: 14px;
    text-align: center;
}
