/* Container & Fonts */
.ctb-container {
    max-width: 800px;
    margin: 20px auto;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #fff;
    border: 1px solid #e1e4e8;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

/* RTL Support */
.ctb-container.is-rtl {
    direction: rtl;
    text-align: right;
}

/* Top Bar (Lang Switch) */
.ctb-top-bar {
    background: #2c3e50;
    padding: 8px 15px;
    display: flex;
    justify-content: flex-end;
}
.is-rtl .ctb-top-bar { justify-content: flex-end; }

.ctb-lang-btn {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    transition: 0.2s;
}
.ctb-lang-btn:hover { background: rgba(255,255,255,0.3); }

/* Tabs */
.ctb-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
}

.ctb-tab {
    flex: 1;
    min-width: 120px;
    border: none;
    background: transparent;
    padding: 18px 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    color: #555;
    font-size: 1.05em;
}

.ctb-tab.active {
    background: #fff;
    border-bottom-color: #d35400; /* Orange Accent */
    color: #000;
    font-weight: 700;
}

.ctb-tab-price {
    display: block;
    font-size: 0.8em;
    color: #888;
    margin-top: 5px;
    font-weight: 400;
}

/* Sticky Controls */
.ctb-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.ctb-guest-counter {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #333;
}

.ctb-stepper {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.ctb-stepper button {
    background: #f5f5f5;
    border: none;
    width: 35px;
    height: 35px;
    font-size: 18px;
    cursor: pointer;
    color: #333;
}
.ctb-stepper button:hover { background: #e9e9e9; }

.ctb-stepper input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-weight: 700;
    font-size: 16px;
    padding: 0;
    margin: 0;
}

.ctb-total-display {
    font-size: 1.2em;
    font-weight: 500;
}

.ctb-total-display span {
    color: #d35400;
    font-weight: 800;
}

/* Menu Content */
.ctb-menu-content {
    background: #fff;
    padding-bottom: 20px;
}

.ctb-section {
    padding: 25px;
    border-bottom: 1px solid #f1f1f1;
}

.ctb-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.ctb-section-header h3 {
    margin: 0;
    font-size: 1.3em;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ctb-limit-badge {
    background: #ecf0f1;
    color: #2c3e50;
    font-size: 0.8em;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* Items */
.ctb-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ctb-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 8px;
    cursor: pointer;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.2s;
}

.ctb-item:hover {
    border-color: #ccc;
    background: #fafafa;
}

.ctb-item.is-selected {
    background: #fff8f5;
    border-color: #d35400;
}

/* Checkbox */
.ctb-item-checkbox {
    padding-right: 15px;
    padding-top: 2px;
}
.is-rtl .ctb-item-checkbox { padding-right: 0; padding-left: 15px; }

.ctb-check-circle {
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s;
}

.ctb-item.is-selected .ctb-check-circle {
    background: #d35400;
    border-color: #d35400;
}

.ctb-item.is-selected .ctb-check-circle::after {
    content: '✓';
    color: white;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Details */
.ctb-item-details { flex: 1; }

.ctb-item-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.ctb-item-title {
    font-size: 1.05em;
    font-weight: 500;
    color: #333;
}

.ctb-item.is-selected .ctb-item-title { color: #d35400; font-weight: 700; }

.ctb-extra-cost {
    font-size: 0.9em;
    color: #d35400;
    font-weight: 700;
}

.ctb-item-desc {
    font-size: 0.9em;
    color: #7f8c8d;
    line-height: 1.4;
}

/* Footer Actions */
.ctb-footer-actions {
    padding: 30px 20px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    text-align: center;
}

.ctb-footer-total {
    font-size: 1.4em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e1e1;
}

.ctb-footer-total span {
    color: #d35400;
    font-weight: 800;
    font-size: 1.1em;
}

.ctb-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 10px auto;
    padding: 15px;
    font-size: 1.1em;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s;
}

.ctb-btn:hover { transform: translateY(-2px); }

.ctb-btn-whatsapp {
    background: #25D366;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.ctb-btn-email {
    background: #34495e;
    color: white;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.ctb-icon { margin-right: 8px; }
.is-rtl .ctb-icon { margin-right: 0; margin-left: 8px; }

/* Form */
.ctb-email-form {
    max-width: 400px;
    margin: 20px auto 0;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    text-align: left;
}
.is-rtl .ctb-email-form { text-align: right; }

.ctb-email-form h4 { margin-top: 0; margin-bottom: 15px; }

.ctb-form-group { margin-bottom: 15px; }
.ctb-form-group label { display: block; margin-bottom: 5px; font-size: 0.9em; font-weight: 600; color: #555; }
.ctb-form-group input, .ctb-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.ctb-btn-submit {
    background: #d35400;
    color: white;
    margin-bottom: 0;
}
.ctb-btn-submit:disabled { background: #ccc; cursor: not-allowed; }

@media (max-width: 600px) {
    .ctb-tab-price { display: none; }
    .ctb-section { padding: 15px; }
    .ctb-footer-total { font-size: 1.2em; }
}

/* Variant Tag in List */
.ctb-variant-tag {
    font-size: 0.85em;
    color: #666;
    font-weight: normal;
    margin-left: 5px;
}

/* Modal Overlay */
.ctb-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Modal Box */
.ctb-modal {
    background: #fff;
    width: 100%;
    max-width: 350px;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.ctb-modal h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.ctb-variant-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.ctb-variant-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.05em;
    display: flex;
    justify-content: space-between;
    transition: 0.2s;
}

.ctb-variant-btn:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.ctb-btn-close {
    background: transparent;
    border: none;
    color: #999;
    text-decoration: underline;
    cursor: pointer;
}