/**
 * Sushi Accompaniments - Recap Page Styles
 * Style similaire à SushiShop
 */

/* Reset pour la page récap */
.sushi-acc-recap-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 99999;
    display: flex;
    flex-direction: column;
}

/* Container */
.sushi-acc-recap-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

/* Header */
.sushi-acc-recap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    background: #fff;
    flex-shrink: 0;
}

.sushi-acc-recap-header h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.sushi-acc-recap-back,
.sushi-acc-recap-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sushi-acc-recap-back .dashicons,
.sushi-acc-recap-close .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.sushi-acc-recap-back:hover,
.sushi-acc-recap-close:hover {
    color: #000;
}

/* Content */
.sushi-acc-recap-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Items list */
.sushi-acc-recap-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Single item */
.sushi-acc-recap-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.sushi-acc-recap-item:last-child {
    border-bottom: none;
}

/* Item left */
.sushi-acc-recap-item-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

/* Item image */
.sushi-acc-recap-item-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
}

.sushi-acc-recap-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Item info */
.sushi-acc-recap-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.sushi-acc-recap-item-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.sushi-acc-recap-item-meta {
    font-size: 14px;
    color: #888;
}

.sushi-acc-recap-item-free {
    color: #b8860b;
}

.sushi-acc-recap-item-price {
    color: #666;
}

.sushi-acc-recap-item-extra-cost {
    font-size: 14px;
    color: #b8860b;
    font-weight: 500;
}

/* Item right */
.sushi-acc-recap-item-right {
    flex-shrink: 0;
    margin-left: 16px;
}

/* Quantity selector - même style que frontend */
.sushi-acc-recap-item .sushi-acc-quantity-selector {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 24px;
    padding: 4px;
}

.sushi-acc-recap-item .sushi-acc-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 300;
    color: #333;
    transition: background-color 0.2s;
}

.sushi-acc-recap-item .sushi-acc-qty-btn:hover:not(:disabled) {
    background: rgba(0,0,0,0.05);
}

.sushi-acc-recap-item .sushi-acc-qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.sushi-acc-recap-item .sushi-acc-qty-value {
    min-width: 32px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

/* Footer */
.orderable-drawer .sushi-acc-recap-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    background: #fff;
    flex-shrink: 0;
    position: absolute;
    bottom: 0;
    display: block;
    width: 100%;
}

.sushi-acc-recap-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
    color: #b8860b;
}

.sushi-acc-recap-total-price {
    font-weight: 600;
}

.sushi-acc-recap-footer .sushi-acc-recap-checkout-btn {
    display: block;
    width: 100%;
    padding: 5px 20px;
    background: #333;
    color: #fff !important;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s;
}

.sushi-acc-recap-footer .sushi-acc-recap-checkout-btn:hover {
    background-color: #000;
    color: #fff !important;
}

/* Empty state */
.sushi-acc-recap-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

/* Note en bas */
.sushi-acc-recap-note {
    padding: 16px 20px;
    text-align: center;
    font-size: 13px;
    color: #b8860b;
    border-top: 1px solid #eee;
}

/* Responsive */
@media (max-width: 480px) {
    .sushi-acc-recap-item {
        padding: 12px 16px;
    }

    .sushi-acc-recap-item-image {
        width: 50px;
        height: 50px;
    }

    .sushi-acc-recap-item-name {
        font-size: 15px;
    }

    .sushi-acc-recap-item .sushi-acc-qty-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .sushi-acc-recap-header {
        padding: 12px 16px;
    }

    .sushi-acc-recap-footer {
        padding: 12px 16px;
    }
}

/* Hide WordPress admin bar on recap page */
.sushi-acc-recap-page ~ #wpadminbar,
body.admin-bar .sushi-acc-recap-page {
    margin-top: 0;
}

html.sushi-acc-recap-active {
    overflow: hidden;
}



.orderable-drawer__close {
    top: 16px;
    right: 46px !important;
    left: initial !important;
}
.orderable-drawer .sushi-acc-recap-back {
    position: absolute;
    top: 0;
    border: none;
    left: 10px;
}
.orderable-drawer .sushi-acc-recap-header h3 {
    display: inline-block;
    width: 100%;
}

