/* ========== BASE ========== */

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f3f4f6;
}

.hidden {
    display: none !important;
}

/* ========== CONTAINER ========== */

.tac-container {
    max-width: 1100px;
    margin: 40px auto;
    background: #ffffff;
    padding: 24px 28px;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* ========== VERTICAL TABS (Tailored Tours style) ========== */

.tac-grid {
    display: grid;
    /* Narrower vertical tabs to give more space to the content */
    grid-template-columns: 120px 1fr;
    gap: 18px;
    align-items: start;
}

@media (max-width: 900px) {
    .tac-grid {
        grid-template-columns: 1fr;
    }
}

.tac-tabs {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.tac-tab-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid #eeeeee;
    background: #ffffff;
    cursor: pointer;
    font-weight: 800;
}

.tac-tab-btn:last-child { border-bottom: 0; }

.tac-tab-btn[aria-selected="true"] {
    box-shadow: inset 3px 0 0 #111111;
}

.tac-tab-btn.tac-missing { background: #fdecec; }
.tac-tab-btn.tac-ok { background: #e9f7ee; }
.tac-tab-btn.tac-missing[aria-selected="true"] { background: #f9dede; }
.tac-tab-btn.tac-ok[aria-selected="true"] { background: #dcf2e4; }

.tac-panel {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 16px;
    background: #ffffff;
}

/* ========== TYPOGRAPHY ========== */

.tac-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2933;
    margin-bottom: 20px;
}

.tac-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.tac-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    display: block;
}

.tac-note {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 4px;
}

.tac-error {
    margin: 12px 0;
    color: #b91c1c;
    font-weight: 600;
}

/* ========== LAYOUT HELPERS ========== */

.tac-section {
    margin-bottom: 20px;
}

.tac-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 768px) {
    .tac-grid-3 {
        grid-template-columns: 1fr;
    }
}

.tac-field {
    display: flex;
    flex-direction: column;
}

.tac-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tac-button-row {
    display: flex;
    /* Keep primary/secondary buttons on one line (wrap only on small screens) */
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: 20px;
}

.tac-button-row .tac-btn {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .tac-button-row {
        flex-wrap: wrap;
    }
}

/* ========== FORM ELEMENTS ========== */

.tac-select,
.tac-select-small,
.tac-input,
.tac-file-input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    box-sizing: border-box;
    background: #ffffff;
}

.tac-select-small {
    max-width: 80px;
}

.tac-select:focus,
.tac-input:focus,
.tac-file-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* ========== BUTTONS ========== */

.tac-btn {
    border-radius: 8px;
    border: none;
    padding: 9px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.tac-btn-primary {
    background: #4f46e5;
    color: #ffffff;
}

.tac-btn-primary:hover:not(:disabled) {
    background: #4338ca;
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.35);
    transform: translateY(-1px);
}

.tac-btn-secondary {
    background: #e5e7eb;
    color: #111827;
}

.tac-btn-secondary:hover:not(:disabled) {
    background: #d1d5db;
}

.tac-btn-light {
    background: #f3f4f6;
    color: #374151;
}

.tac-btn-light:hover:not(:disabled) {
    background: #e5e7eb;
}

.tac-btn:disabled {
    background: #d4d4d8;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ========== BOXES / CARDS ========== */

.tac-box {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.tac-box-warning {
    background: #fffbeb;
    border: 1px solid #facc15;
    color: #92400e;
}

/* ========== ROOMS & TRAVELER PILLS ========== */

.tac-rooms-list {
    margin-top: 16px;
}

.room-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(15,23,42,0.06);
}

.room-container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.room-title {
    font-weight: 600;
    color: #374151;
}

.remove-room {
    border: none;
    background: transparent;
    color: #dc2626;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.traveler-selection-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border-radius: 8px;
    background: #f3f4f6;
    min-height: 40px;
}

.tac-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Buttons representing travelers */

.traveler-button {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    transition: box-shadow 0.15s ease, background-color 0.15s ease, transform 0.05s ease;
}

.traveler-button:hover {
    box-shadow: 0 2px 6px rgba(31,41,55,0.25);
    transform: translateY(-1px);
}

.traveler-checkbox {
    margin-right: 6px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    height: 18px;
    width: 18px;
    background-color: #e5e7eb;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    font-size: 0.8rem;
    font-weight: bold;
}

.traveler-checkbox:checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
}

.traveler-checkbox:checked::after {
    content: "✓";
}

/* Colors by traveler type (JS assigns these classes) */

.bg-indigo-200 {
    background-color: #e0e7ff;
    color: #312e81;
}

.bg-emerald-200 {
    background-color: #a7f3d0;
    color: #064e3b;
}

.bg-rose-200 {
    background-color: #fecaca;
    color: #7f1d1d;
}

/* Mandatory traveler styling */

.traveler-button[data-mandatory="true"] {
    opacity: 0.75;
    cursor: default !important;
}

.traveler-button[data-mandatory="true"]:hover {
    box-shadow: none;
    transform: none;
}

/* ========== TRAVELER DETAILS FORM ========== */

.tac-details-form {
    margin-top: 16px;
}

.tac-traveler-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
    box-shadow: inset 0 0 0 1px #e5e7eb;
}

.tac-traveler-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.tac-traveler-room-note {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 8px;
}

.text-red-500 {
    color: #b91c1c;
    font-size: 0.8rem;
}

.tac-loading {
    margin-top: 12px;
    font-size: 0.95rem;
    color: #4b5563;
}

/* ========== MODALS ========== */

.tac-modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(31,41,55,0.6);
    z-index: 9999;
}

.tac-modal.flex {
    display: flex;
}

.tac-modal-dialog {
    background: #ffffff;
    max-width: 420px;
    width: 90%;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    text-align: center;
}

.tac-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111827;
}

.tac-modal-content {
    font-size: 0.95rem;
    color: #4b5563;
}

.tac-modal-content-margin {
    margin-bottom: 8px;
}

.tac-modal-button {
    margin-top: 14px;
    width: 100%;
}

.tac-modal-actions {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* ========== CART NOT REQUIRED FIELDS HIDE ========== */

td.wc-block-cart-item__image {
    display: none !important;
}

th.wc-block-cart-items__header-product {
    display: none !important;
}

td.wc-block-cart-item__total {
	  display: none !important;
}

th.wc-block-cart-items__header-total {
	  display: none !important;
}

a.wc-block-components-product-name {
	  display: none !important;
}

div.wc-block-cart-item__prices {
	  display: none !important;
}

div.wc-block-components-quantity-selector {
	  display: none !important;
}

/* Checkout Block: show only product title in order summary (hide extra details) */
.wc-block-components-order-summary-item__description .wc-block-components-product-details,
.wc-block-components-order-summary-item__description .wc-block-components-product-metadata,
.wc-block-components-order-summary-item__quantity,
.wc-block-components-order-summary-item__individual-prices{
  display:none !important;
}
