/**
 * Cookie Shop Styles
 */

.ubitto-cookie-shop-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ubitto-cookie-shop-section .ubitto-ld-section-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.ubitto-cookie-shop-section .ubitto-ld-section-title svg {
    color: #d4a853;
}

/* Header Layout */
.ubitto-cookie-shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

/* Balance Display */
.ubitto-cookie-shop-balance {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #f5e6c8 0%, #e8d4a8 100%);
    padding: 12px 20px;
    border-radius: 12px;
    border: 2px solid #d4a853;
}

.ubitto-cookie-shop-balance-icon {
    width: 40px;
    height: 40px;
}

.ubitto-cookie-shop-balance-icon svg {
    width: 100%;
    height: 100%;
    color: #d4a853;
}

.ubitto-cookie-shop-balance-info {
    display: flex;
    flex-direction: column;
}

.ubitto-cookie-shop-balance-amount {
    font-size: 24px;
    font-weight: 700;
    color: #8B4513;
    line-height: 1;
}

.ubitto-cookie-shop-balance-label {
    font-size: 12px;
    color: #a0855a;
    margin-top: 2px;
}

/* Filter Tabs */
.ubitto-cookie-shop-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ubitto-cookie-shop-filter {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ubitto-cookie-shop-filter:hover {
    background: #f5e6c8;
    border-color: #d4a853;
    color: #5a3510;
}

.ubitto-cookie-shop-filter.active {
    background: #d4a853;
    border-color: #d4a853;
    color: #fff;
}

.ubitto-cookie-shop-filter-owned {
    border-color: #009688;
    color: #009688;
}

.ubitto-cookie-shop-filter-owned:hover,
.ubitto-cookie-shop-filter-owned.active {
    background: #009688;
    border-color: #009688;
    color: #fff;
}

/* Category Descriptions */
.ubitto-cookie-shop-category-desc {
    margin-top: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f4eb 0%, #fdf8ee 100%);
    border-left: 3px solid #d4a853;
    border-radius: 6px;
    font-size: 13px;
    color: #5a3510;
    line-height: 1.5;
}

.ubitto-cookie-shop-category-desc:empty {
    display: none;
}

.ubitto-cookie-shop-category-desc strong {
    color: #8B4513;
}

/* Items Grid */
.ubitto-cookie-shop-grid {
    display: grid;
    /* Fixed 5 columns on desktop (hard cap — never more than 5 per row). Each
       card is exactly 1/5 of the row, so a lone card stays card-sized and
       left-aligns instead of stretching. Tablet/mobile reduce the count below.
       minmax(0,1fr) lets the columns shrink without overflowing. */
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

/* Tablet — 3 across so cards aren't cramped (still grid; mobile ≤768 is a
   carousel, defined further down). */
@media (min-width: 769px) and (max-width: 1024px) {
    .ubitto-cookie-shop-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Hide carousel elements on desktop - only show on mobile */
.ubitto-cookie-shop-carousel-indicators,
.ubitto-cookie-shop-swipe-hint {
    display: none !important;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

/* Item Card */
.ubitto-cookie-shop-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.ubitto-cookie-shop-item:hover {
    border-color: #d4a853;
    box-shadow: 0 4px 12px rgba(212, 168, 83, 0.15);
    transform: translateY(-2px);
}

.ubitto-cookie-shop-item.owned {
    border-color: #009688;
}

.ubitto-cookie-shop-item.owned:hover {
    box-shadow: 0 4px 12px rgba(0, 150, 136, 0.15);
}

.ubitto-cookie-shop-item.cannot-afford {
    opacity: 0.7;
}

.ubitto-cookie-shop-item.ubitto-cookie-shop-locked {
    opacity: 0.6;
    filter: grayscale(0.3);
}

.ubitto-cookie-shop-locked-btn {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.ubitto-cookie-shop-locked-btn:hover {
    color: #F9653F;
    border-color: #F9653F;
    background: #fff5f2;
}

.ubitto-cookie-shop-requirement-btn {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 6px;
    padding: 4px 10px;
    text-decoration: none;
    line-height: 1.3;
    transition: all 0.2s;
}

.ubitto-cookie-shop-requirement-btn:hover {
    color: #92400e;
    border-color: #f59e0b;
    background: #fef3c7;
}

/* Help panel header (matching educator dashboard style) */
#ubitto-shop-help-panel .ubitto-students-help-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    flex-shrink: 0;
}

#ubitto-shop-help-panel .ubitto-students-help-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

#ubitto-shop-help-panel .ubitto-students-help-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 20px;
}

#ubitto-shop-help-panel .ubitto-students-help-close:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #9ca3af;
}

/* Help button (matching educator dashboard style) */
.ubitto-cookie-shop-section .ubitto-students-help-btn {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    padding: 4px 10px;
    background: #f0f0ff;
    border: 1px solid #4f46e5;
    border-radius: 4px;
    color: #4f46e5;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ubitto-cookie-shop-section .ubitto-students-help-btn:hover {
    background: #4f46e5;
    color: #fff;
}

.ubitto-cookie-shop-item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 6px;
}

.ubitto-cookie-shop-item-desc + .ubitto-cookie-shop-detail-btn {
    margin-top: 6px;
    margin-bottom: 4px;
}

.ubitto-cookie-shop-item-info .ubitto-cookie-shop-item-author {
    display: flex;
    margin-top: 4px;
}

.ubitto-cookie-shop-item-author {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #888;
}

.ubitto-cookie-shop-item-author img {
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    object-fit: cover;
}

.ubitto-cookie-shop-detail-btn {
    display: block;
    margin-top: 6px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 500;
    color: #4f46e5;
    background: #f0f0ff;
    border: 1px solid #4f46e5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.ubitto-cookie-shop-detail-btn:hover {
    background: #4f46e5;
    color: #fff;
}

.ubitto-cookie-shop-item.hidden {
    display: none;
}

/* Item Image */
.ubitto-cookie-shop-item-image {
    position: relative;
    width: 100%;
    padding-top: 70%;
    background: #f5f5f5;
    overflow: hidden;
}

.ubitto-cookie-shop-item-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ubitto-cookie-shop-item-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ccc;
}

.ubitto-cookie-shop-item-placeholder svg {
    width: 48px;
    height: 48px;
}

/* Type Badge */
.ubitto-cookie-shop-item-type {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}

.ubitto-cookie-shop-type-downloadable {
    background: #5c6bc0;
}

.ubitto-cookie-shop-type-badge {
    background: #ffb300;
    color: #000;
}

.ubitto-cookie-shop-type-title {
    background: #ab47bc;
}

.ubitto-cookie-shop-type-coupon {
    background: #26a69a;
}

.ubitto-cookie-shop-type-raffle {
    background: #ef5350;
}

.ubitto-cookie-shop-type-featured {
    background: #ffd700;
    color: #000;
}

/* Owned Badge */
.ubitto-cookie-shop-item-owned-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    background: #009688;
    color: #fff;
}

/* Item Info */
.ubitto-cookie-shop-item-info {
    padding: 16px;
}

.ubitto-cookie-shop-item-name {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.ubitto-cookie-shop-item-desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

/* Item Footer */
.ubitto-cookie-shop-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.ubitto-cookie-shop-item-price {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 600;
    color: #8B4513;
}

.ubitto-cookie-shop-item-price svg {
    color: #d4a853;
}

.ubitto-cookie-shop-item-purchased {
    font-size: 13px;
    color: #009688;
    font-weight: 500;
}

.ubitto-cookie-shop-buy-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: #d4a853;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ubitto-cookie-shop-buy-btn:hover {
    background: #c49643;
}

.ubitto-cookie-shop-download-btn,
.ubitto-cookie-shop-equip-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid #009688;
    border-radius: 6px;
    background: transparent;
    color: #009688;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ubitto-cookie-shop-download-btn:hover,
.ubitto-cookie-shop-equip-btn:hover {
    background: #009688;
    color: #fff;
}

.ubitto-cookie-shop-not-enough {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.ubitto-cookie-shop-unavailable {
    font-size: 12px;
    color: #dc3545;
    font-weight: 500;
}

/* Empty State */
.ubitto-cookie-shop-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.ubitto-cookie-shop-empty p {
    margin: 16px 0 0 0;
    font-size: 15px;
}

/* Modal Styles */
.ubitto-cookie-shop-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ubitto-cookie-shop-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: ubitto-cookie-shop-fadeIn 0.2s ease;
}

.ubitto-cookie-shop-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    animation: ubitto-cookie-shop-slideUp 0.3s ease;
}

@keyframes ubitto-cookie-shop-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ubitto-cookie-shop-slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ubitto-cookie-shop-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    border-radius: 12px 12px 0 0;
}

.ubitto-cookie-shop-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.ubitto-cookie-shop-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.ubitto-cookie-shop-modal-close:hover {
    background: #eee;
    color: #333;
}

.ubitto-cookie-shop-modal-body {
    padding: 20px;
}

.ubitto-cookie-shop-modal-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.ubitto-cookie-shop-modal-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background: #f5f5f5;
}

.ubitto-cookie-shop-modal-details {
    flex: 1;
}

.ubitto-cookie-shop-modal-name {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0 0 6px 0;
}

.ubitto-cookie-shop-modal-desc {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.ubitto-cookie-shop-modal-summary {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 12px 16px;
}

.ubitto-cookie-shop-modal-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}

.ubitto-cookie-shop-modal-row-total {
    border-top: 1px solid #ddd;
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 600;
    color: #222;
}

.ubitto-cookie-shop-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #eee;
}

.ubitto-cookie-shop-modal-cancel {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ubitto-cookie-shop-modal-cancel:hover {
    background: #f5f5f5;
}

.ubitto-cookie-shop-modal-confirm {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #d4a853;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ubitto-cookie-shop-modal-confirm:hover {
    background: #c49643;
}

.ubitto-cookie-shop-modal-confirm svg {
    color: #fff;
}

.ubitto-cookie-shop-modal-confirm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success Modal */
.ubitto-cookie-shop-success-content {
    text-align: center;
    padding: 40px 30px;
}

.ubitto-cookie-shop-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ubitto-cookie-shop-success-icon svg {
    width: 32px;
    height: 32px;
    color: #4caf50;
}

.ubitto-cookie-shop-success-title {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin: 0 0 12px 0;
}

.ubitto-cookie-shop-success-message {
    font-size: 14px;
    color: #666;
    margin: 0 0 24px 0;
}

.ubitto-cookie-shop-success-close {
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    background: #009688;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ubitto-cookie-shop-success-close:hover {
    background: #00897b;
}

/* Responsive */
@media (max-width: 768px) {
    .ubitto-cookie-shop-header {
        flex-direction: column;
        align-items: stretch;
    }

    .ubitto-cookie-shop-balance {
        justify-content: center;
    }

    .ubitto-cookie-shop-filters {
        justify-content: center;
    }

    /* Carousel layout for mobile */
    .ubitto-cookie-shop-grid-wrapper {
        position: relative;
    }

    .ubitto-cookie-shop-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding: 4px 0 16px 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .ubitto-cookie-shop-grid::-webkit-scrollbar {
        display: none;
    }

    .ubitto-cookie-shop-item {
        flex: 0 0 calc(100% - 32px);
        scroll-snap-align: center;
        min-width: calc(100% - 32px);
    }

    .ubitto-cookie-shop-item.hidden {
        display: none;
    }

    .ubitto-cookie-shop-item-info {
        padding: 12px;
    }

    .ubitto-cookie-shop-item-name {
        font-size: 14px;
    }

    .ubitto-cookie-shop-item-desc {
        font-size: 12px;
        -webkit-line-clamp: 3;
    }

    .ubitto-cookie-shop-modal-content {
        max-width: 100%;
    }

    /* Carousel indicators */
    .ubitto-cookie-shop-carousel-indicators {
        display: flex !important;
        visibility: visible;
        height: auto;
        overflow: visible;
        justify-content: center;
        gap: 8px;
        margin-top: 12px;
    }

    .ubitto-cookie-shop-carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ddd;
        border: none;
        padding: 0;
        cursor: pointer;
        transition: background 0.2s, transform 0.2s;
    }

    .ubitto-cookie-shop-carousel-dot.active {
        background: #d4a853;
        transform: scale(1.2);
    }

    /* Swipe hint */
    .ubitto-cookie-shop-swipe-hint {
        display: block !important;
        visibility: visible;
        height: auto;
        overflow: visible;
        text-align: center;
        font-size: 12px;
        color: #999;
        margin-top: 8px;
    }
}

/* Streak Teaser */
.ubitto-cookie-shop-balance-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ubitto-cookie-shop-streak-teaser {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #2a2a4e;
}

.ubitto-cookie-shop-streak-icon {
    width: 28px;
    height: 28px;
    color: #6b7280;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ubitto-cookie-shop-streak-icon svg {
    width: 100%;
    height: 100%;
}

@keyframes cookieShopFlameFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* Streak flame levels */
.ubitto-cookie-shop-streak-icon.level-0 {
    color: #6b7280;
}
.ubitto-cookie-shop-streak-icon.level-0 svg {
    filter: none;
}

.ubitto-cookie-shop-streak-icon.level-1 {
    color: #fb923c;
    animation: cookieShopFlameFloat 1.5s ease-in-out infinite;
}
.ubitto-cookie-shop-streak-icon.level-1 svg {
    filter: drop-shadow(0 0 6px currentColor);
}

.ubitto-cookie-shop-streak-icon.level-2 {
    color: #f97316;
    animation: cookieShopFlameFloat 1.5s ease-in-out infinite;
}
.ubitto-cookie-shop-streak-icon.level-2 svg {
    filter: drop-shadow(0 0 8px currentColor);
}

.ubitto-cookie-shop-streak-icon.level-3 {
    color: #ef4444;
    animation: cookieShopFlameFloat 1.3s ease-in-out infinite;
}
.ubitto-cookie-shop-streak-icon.level-3 svg {
    filter: drop-shadow(0 0 10px currentColor);
}

.ubitto-cookie-shop-streak-icon.level-4 {
    color: #ef4444;
    animation: cookieShopFlameFloat 1.2s ease-in-out infinite;
}
.ubitto-cookie-shop-streak-icon.level-4 svg {
    filter: drop-shadow(0 0 12px #ef4444);
}

.ubitto-cookie-shop-streak-icon.level-5 {
    color: #fbbf24;
    animation: cookieShopFlameFloat 1s ease-in-out infinite;
}
.ubitto-cookie-shop-streak-icon.level-5 svg {
    filter: drop-shadow(0 0 15px #f97316);
}

.ubitto-cookie-shop-streak-icon.level-6 {
    color: #fef3c7;
    animation: cookieShopFlameFloat 0.8s ease-in-out infinite;
}
.ubitto-cookie-shop-streak-icon.level-6 svg {
    filter: drop-shadow(0 0 20px #fbbf24) drop-shadow(0 0 40px #ef4444);
}

.ubitto-cookie-shop-streak-info {
    display: flex;
    flex-direction: column;
}

.ubitto-cookie-shop-streak-text {
    font-size: 13px;
    color: #ccc;
}

.ubitto-cookie-shop-streak-text strong {
    color: #ff6b35;
}

.ubitto-cookie-shop-streak-reward {
    font-size: 14px;
    font-weight: 600;
    color: #ff6b35;
}

@media (max-width: 768px) {
    .ubitto-cookie-shop-balance-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ubitto-cookie-shop-streak-teaser {
        justify-content: center;
    }
}

/* ========== Frontend Admin Styles ========== */

.ubitto-cookie-shop-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ubitto-cookie-shop-title-row .ubitto-ld-section-title {
    margin-bottom: 0;
}

.ubitto-cookie-shop-admin-add-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: #4CAF50;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ubitto-cookie-shop-admin-add-btn:hover {
    background: #43A047;
}

/* Item Admin Actions */
.ubitto-cookie-shop-item-admin-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ubitto-cookie-shop-item:hover .ubitto-cookie-shop-item-admin-actions {
    opacity: 1;
}

.ubitto-cookie-shop-item {
    position: relative;
}

.ubitto-cookie-shop-edit-btn,
.ubitto-cookie-shop-delete-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ubitto-cookie-shop-edit-btn {
    background: rgba(33, 150, 243, 0.9);
    color: #fff;
}

.ubitto-cookie-shop-edit-btn:hover {
    background: #1976D2;
}

.ubitto-cookie-shop-delete-btn {
    background: rgba(244, 67, 54, 0.9);
    color: #fff;
}

.ubitto-cookie-shop-delete-btn:hover {
    background: #D32F2F;
}

/* Admin Modal Styles */
.ubitto-cookie-shop-admin-modal-content {
    max-width: 550px;
    max-height: 85vh;
}

.ubitto-cookie-shop-admin-body {
    max-height: 60vh;
    overflow-y: auto;
}

.ubitto-cookie-shop-admin-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.ubitto-cookie-shop-admin-field {
    flex: 1;
}

.ubitto-cookie-shop-admin-field-full {
    flex: 1 1 100%;
}

.ubitto-cookie-shop-admin-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.ubitto-cookie-shop-admin-field input,
.ubitto-cookie-shop-admin-field select,
.ubitto-cookie-shop-admin-field textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.ubitto-cookie-shop-admin-field input:focus,
.ubitto-cookie-shop-admin-field select:focus,
.ubitto-cookie-shop-admin-field textarea:focus {
    outline: none;
    border-color: #d4a853;
}

.ubitto-cookie-shop-admin-hint {
    margin: 4px 0 0 0;
    font-size: 11px;
    color: #888;
}

.ubitto-cookie-shop-admin-type-section {
    background: #f9f9f9;
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
}

.ubitto-cookie-shop-admin-type-section h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e5e5;
}

.ubitto-cookie-shop-admin-save-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    background: #4CAF50;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ubitto-cookie-shop-admin-save-btn:hover {
    background: #43A047;
}

.ubitto-cookie-shop-admin-save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .ubitto-cookie-shop-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .ubitto-cookie-shop-admin-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .ubitto-cookie-shop-item-admin-actions {
        opacity: 1;
    }
}

/* Fix admin action button icons */
.ubitto-cookie-shop-edit-btn svg,
.ubitto-cookie-shop-delete-btn svg {
    display: block;
    stroke: #fff;
    stroke-width: 2;
}

.ubitto-cookie-shop-edit-btn,
.ubitto-cookie-shop-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Equipped title state */
.ubitto-cookie-shop-equip-btn.equipped {
    background: #4caf50 !important;
    color: #fff !important;
    border-color: #4caf50 !important;
    cursor: default;
}

.ubitto-cookie-shop-equipped-badge {
    position: absolute;
    top: 38px;
    right: 10px;
    background: #4caf50;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* View Code Button */
.ubitto-cookie-shop-view-code-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid #ff9800;
    border-radius: 6px;
    background: transparent;
    color: #ff9800;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ubitto-cookie-shop-view-code-btn:hover {
    background: #ff9800;
    color: #fff;
}

.ubitto-cookie-shop-view-code-btn svg {
    stroke: currentColor;
}

/* Coupon Modal */
.ubitto-cookie-shop-coupon-content {
    text-align: center;
    max-width: 400px;
    padding: 30px;
    padding-top: 40px;
}

.ubitto-cookie-shop-coupon-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ubitto-cookie-shop-coupon-icon svg {
    width: 30px;
    height: 30px;
    stroke: #fff;
}

.ubitto-cookie-shop-coupon-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px;
}

.ubitto-cookie-shop-coupon-code-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f5f5f5;
    border: 2px dashed #ff9800;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.ubitto-cookie-shop-coupon-code {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    letter-spacing: 2px;
}

.ubitto-cookie-shop-copy-code-btn {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ubitto-cookie-shop-copy-code-btn svg {
    stroke: #666;
}

.ubitto-cookie-shop-copy-code-btn:hover {
    background: #ff9800;
    border-color: #ff9800;
}

.ubitto-cookie-shop-copy-code-btn:hover svg {
    stroke: #fff;
}

.ubitto-cookie-shop-copy-code-btn.copied {
    background: #4caf50;
    border-color: #4caf50;
}

.ubitto-cookie-shop-copy-code-btn.copied svg {
    stroke: #fff;
}

.ubitto-cookie-shop-coupon-hint {
    font-size: 13px;
    color: #666;
    margin: 0 0 20px;
}

.ubitto-cookie-shop-coupon-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.ubitto-cookie-shop-coupon-close {
    padding: 10px 30px;
    border: none;
    border-radius: 6px;
    background: #ff9800;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ubitto-cookie-shop-coupon-close:hover {
    background: #f57c00;
}

/* Coupon Used Status */
.ubitto-cookie-shop-coupon-used {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid #9e9e9e;
    border-radius: 6px;
    background: #f5f5f5;
    color: #666;
    font-size: 12px;
    font-weight: 500;
}

.ubitto-cookie-shop-coupon-used svg {
    stroke: #4caf50;
}
