/* Turram Online Ordering: incremental, responsive theme refresh.
   Brand accent can be overridden per restaurant without modifying layouts. */
:root {
  --turram-accent: #e58a24;
  --turram-accent-hover: #bd6513;
  --turram-text: #242b35;
  --turram-border: #e8e9ed;
  --turram-surface: #ffffff;
  --turram-page: #faf9f6;
}
body { color: var(--turram-text); background-color: var(--turram-page); }
a { transition: color .15s ease; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--turram-accent);
  outline-offset: 2px;
}
.btn { border-radius: .65rem; transition: background-color .15s ease, box-shadow .15s ease; }
.btn-primary { background-color: var(--turram-accent); border-color: var(--turram-accent); color: #191919; font-weight: 700; }
.btn-primary:hover, .btn-primary:focus { background-color: var(--turram-accent-hover); border-color: var(--turram-accent-hover); color: #fff; }
.card { border: 1px solid var(--turram-border); border-radius: 1rem; background: var(--turram-surface); overflow: hidden; }
.card img { max-width: 100%; }
.form-control, .custom-select { border-radius: .55rem; min-height: 42px; }
.form-control:focus, .custom-select:focus { border-color: var(--turram-accent); box-shadow: 0 0 0 .18rem rgba(229,138,36,.16); }
img { max-width: 100%; }
@media (max-width: 767px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .btn { min-height: 42px; }
  .card { border-radius: .8rem; }
  h1 { font-size: clamp(1.65rem, 6vw, 2.25rem); }
  h2 { font-size: clamp(1.4rem, 5vw, 1.85rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Shared storefront mobile guardrails, 2026-10-16. */
html{max-width:100%}
*,*::before,*::after{box-sizing:border-box}
img,video,iframe{max-width:100%}
@media(max-width:767px){
  body{max-width:100%;overflow-x:hidden}
  .container,.container-fluid,.container-xxl,.row,.col,.card,.card-body,.modal-dialog{max-width:100%}
  .row{margin-left:-8px;margin-right:-8px}
  .row>[class*="col-"]{min-width:0}
  input:not([type=checkbox]):not([type=radio]),select,textarea{max-width:100%}
  .table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .navbar .container,.navbar .container-fluid{min-width:0}
  .navbar-brand{max-width:75%;white-space:normal}
  .btn,.btn-primary,.btn-secondary{white-space:normal;overflow-wrap:anywhere}
}

/* Compact, consistent mobile layout across storefront pages. */
@media(max-width:600px){
  body{font-size:14px;line-height:1.45}
  .container,.container-fluid,.container-xxl{padding-left:12px!important;padding-right:12px!important}
  .hero-header{padding:10px 0!important;margin-bottom:12px!important;min-height:0!important}
  .hero-header h1{font-size:23px!important;line-height:1.2!important}
  h1{font-size:23px!important;line-height:1.25!important}
  h2{font-size:20px!important;line-height:1.3!important}
  h3{font-size:18px!important}
  h4,h5{font-size:16px!important}
  .navbar{padding-top:7px!important;padding-bottom:7px!important}
  .navbar-brand img{max-height:48px!important;width:auto!important}
  .navbar .nav-link{padding-top:8px!important;padding-bottom:8px!important}
  .card{border-radius:12px!important}
  .card-body{padding:12px!important}
  .btn{font-size:14px!important;padding:9px 13px!important;min-height:40px!important}
  .form-control,.custom-select{font-size:16px!important;min-height:40px!important;padding:7px 10px!important}
  .modal-dialog{margin:10px!important}
  .modal-body,.modal-header,.modal-footer{padding:12px!important}
  .table{font-size:13px!important}
  .table td,.table th{padding:7px!important}
  footer,.footer{font-size:13px!important}
  footer .container,.footer .container{padding-top:12px!important;padding-bottom:12px!important}
}

/* Order confirmation receipt */
.turram-order-receipt{width:min(100% - 24px,760px);margin:22px auto 30px;padding:26px;background:#fff;border:1px solid #e6e8eb;border-radius:16px;box-shadow:0 8px 28px rgba(20,28,40,.06);font-size:15px;color:#202733}
.turram-receipt-heading{display:flex;gap:16px;align-items:center;padding-bottom:18px;border-bottom:1px solid #e6e8eb}
.turram-receipt-heading img{width:68px;height:68px;object-fit:contain;border-radius:10px}
.turram-receipt-heading h2{font-size:22px;margin:0 0 5px}.turram-receipt-heading p{margin:0;color:#697586}
.turram-receipt-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:22px 0;border-bottom:1px solid #e6e8eb}
.turram-receipt-meta div{min-width:0}.turram-receipt-meta span{display:block;color:#687588;font-size:13px;margin-bottom:4px}.turram-receipt-meta strong{display:block;overflow-wrap:anywhere;font-size:14px}
.turram-receipt-section-title{font-size:19px;margin:22px 0 12px}
.turram-receipt-item{display:flex;align-items:flex-start;gap:12px;padding:15px 0;border-bottom:1px solid #edf0f2}
.turram-receipt-qty{min-width:36px;background:#f4f5f6;text-align:center;padding:5px 3px;border-radius:6px;font-weight:700}
.turram-receipt-item-desc{flex:1;min-width:0;overflow-wrap:anywhere}.turram-receipt-item-desc>strong{display:block;font-size:15px}.turram-receipt-modifier{color:#677486;font-size:13px;margin-top:5px;padding-left:8px}
.turram-receipt-price{white-space:nowrap;font-variant-numeric:tabular-nums}
.turram-receipt-totals{margin-top:18px;padding-top:4px}.turram-receipt-totals>div{display:flex;justify-content:space-between;gap:12px;padding:9px 0}.turram-receipt-grand{border-top:2px solid #dfe3e8;margin-top:8px;padding-top:17px!important;font-size:20px;font-weight:800}.turram-receipt-grand strong{white-space:nowrap}
.turram-receipt-help{border-top:1px solid #edf0f2;margin:18px 0 0;padding-top:15px;color:#657286;font-size:13px}
@media(max-width:600px){.turram-order-receipt{width:calc(100% - 20px);padding:16px;margin:12px auto 22px}.turram-receipt-heading h2{font-size:18px}.turram-receipt-meta{gap:13px}.turram-receipt-grand{font-size:18px}}

/* Two-column checkout review: item details left, amounts right. */
#right-process-3.turram-order-review {width:100%;min-width:0;overflow:hidden;}
#right-process-3 .turram-review-table {width:100%;table-layout:fixed;border-collapse:collapse;}
#right-process-3 .turram-review-table td {font-size:14px!important;line-height:1.5;vertical-align:top;padding:8px 5px;overflow-wrap:anywhere;}
#right-process-3 .turram-review-table td:first-child {width:67%;text-align:left!important;}
#right-process-3 .turram-review-table td:nth-child(2) {width:33%;text-align:right!important;white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums;}
#right-process-3 .turram-review-table td div {font-size:inherit!important;}
#right-process-3 .turram-review-table td[colspan] {width:100%;white-space:normal;}
#right-process-3 .turram-review-table tr:has(td b) td {border-top:1px solid #e5e7eb;}
@media(max-width:480px){#right-process-3 .turram-review-table td {font-size:13px!important;padding:7px 3px;}}

/* Review rows must never collapse into a single mobile column. */
#right-process-3.turram-order-review .turram-review-table {display:table!important;width:100%!important;max-width:100%!important;float:none!important;margin:0!important;table-layout:fixed!important;}
#right-process-3.turram-order-review .turram-review-table tr {display:table-row!important;}
#right-process-3.turram-order-review .turram-review-table td {display:table-cell!important;box-sizing:border-box!important;}
#right-process-3.turram-order-review .turram-review-table td[colspan] {display:table-cell!important;width:auto!important;}
#right-process-3.turram-order-review .turram-review-table td:nth-child(2) {text-align:right!important;}
#right-process-3.turram-order-review > p.btn {width:100%!important;margin-left:0!important;font-size:16px!important;}

/* Checkout mobile layout: preserve item/amount columns and clear controls. */
@media(max-width:767px){
  #right-process-3.turram-order-review{width:100%!important;max-width:100%!important;padding:0!important;overflow:visible!important}
  #right-process-3.turram-order-review .turram-review-table{width:100%!important;table-layout:fixed!important;border-spacing:0!important}
  #right-process-3.turram-order-review .turram-review-table tr{display:table-row!important}
  #right-process-3.turram-order-review .turram-review-table td{display:table-cell!important;vertical-align:top!important;padding:10px 5px!important;font-size:14px!important;line-height:1.45!important}
  #right-process-3.turram-order-review .turram-review-table td:first-child:not([colspan]){width:65%!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere!important}
  #right-process-3.turram-order-review .turram-review-table td:nth-child(2){width:35%!important;text-align:right!important;white-space:nowrap!important;font-variant-numeric:tabular-nums}
  #right-process-3.turram-order-review .turram-review-table td[colspan="2"]{width:100%!important}
  #right-process-3.turram-order-review .turram-review-table td div{font-size:inherit!important}
  #right-process-3.turram-order-review>p.btn{display:block!important;width:100%!important;margin:0 0 12px!important;text-align:left!important;padding:12px 15px!important}
  #checkout-process-2 input[type="text"],#checkout-process-2 input[type="email"],#checkout-process-2 input[type="tel"],#checkout-process-2 select,#checkout-process-2 textarea{max-width:100%!important;font-size:16px!important}
  #cod-option-content{padding:12px 0!important}
  #cod-option-content input[type="button"]{width:100%!important;min-height:48px!important;font-size:16px!important}
}

/* Balti checkout presentation: CSS-only; no order workflow changes. */
#checkout-process-1,#checkout-process-2,#checkout-process-3,#checkout-process-4{max-width:1100px;margin-left:auto;margin-right:auto;}
#checkout-process-1 input,#checkout-process-2 input,#checkout-process-2 select,#checkout-process-2 textarea{border-radius:8px;}
#checkout-process-2 .turram-order-review{background:#fff;border:1px solid #e8e9ed;border-radius:12px;padding:16px!important;box-shadow:0 4px 16px rgba(20,28,40,.04);}
#checkout-process-2 .turram-review-table td{border-bottom:1px solid #f0f1f3;}
#checkout-process-2 label{font-weight:600;color:#333b46;margin-bottom:6px;}
#checkout-process-2 input[type="button"],#checkout-process-1 input[type="button"]{border-radius:9px;min-height:44px;}
@media(max-width:767px){
  #checkout-process-1,#checkout-process-2,#checkout-process-3,#checkout-process-4{width:100%!important;max-width:100%!important;}
  #checkout-process-2 .parent,#checkout-process-2 .child{width:100%!important;max-width:100%!important;float:none!important;min-width:0!important;}
  #checkout-process-2 #div_delivery2,#checkout-process-2 #shipping-address{width:100%!important;max-width:100%!important;float:none!important;margin-right:0!important;}
  #checkout-process-2 #shipping-address table{width:100%!important;table-layout:fixed;}
  #checkout-process-2 #shipping-address td{padding:6px 4px!important;vertical-align:top;overflow-wrap:anywhere;}
  #checkout-process-2 #shipping-address td:first-child{width:34%;}
  #checkout-process-2 #shipping-address td:nth-child(2){width:66%;}
  #checkout-process-2 #div_delivery2>div[style*="width: 75%"]{width:100%!important;float:none!important;margin:14px 0!important;}
  #checkout-process-2 .turram-order-review{padding:12px!important;margin-top:16px!important;}
  #checkout-process-2 input[type="date"],#checkout-process-2 select,#checkout-process-2 textarea{width:100%!important;max-width:100%!important;}
  #checkout-process-2 #btn_place_order{width:100%!important;}
  #checkout-process-2 #btn_place_order input{display:block;width:100%!important;margin:12px 0!important;min-height:48px!important;font-size:16px!important;}
}

/* Checkout visual polish: presentation only, preserve existing form behaviour. */
#checkout-process-1,#checkout-process-2,#checkout-process-3,#checkout-process-4{color:#26313d;}
#checkout-process-1 .form-control,#checkout-process-2 .form-control,#checkout-process-3 .form-control{background:#fff;border:1px solid #cbd2da;box-shadow:none;}
#checkout-process-1 .form-control:focus,#checkout-process-2 .form-control:focus,#checkout-process-3 .form-control:focus{border-color:#c87920;box-shadow:0 0 0 3px rgba(229,138,36,.14);}
/* Checkout order-type title is a non-interactive span, not a button. */
#checkout-process-2 .child > span.btn.btn-primary,
#checkout-process-1 .child > span.btn.btn-primary{
  display:block!important;width:100%!important;background:transparent!important;
  background-image:none!important;border:0!important;border-bottom:1px solid #e2e6eb!important;
  border-radius:0!important;box-shadow:none!important;color:#243247!important;
  font-size:17px!important;font-weight:800!important;line-height:1.4!important;
  text-align:left!important;padding:5px 0 12px!important;margin:0 0 12px!important;
  min-height:0!important;cursor:default!important;pointer-events:none!important;
}
/* Read-only section heading: never style a title like a green action button. */
#checkout-process-2 .turram-order-review>p.btn,
#checkout-process-3 .turram-order-review>p.btn,
#checkout-process-4 .turram-order-review>p.btn{
  display:block!important;background:transparent!important;background-image:none!important;
  border:0!important;border-bottom:1px solid #e2e6eb!important;border-radius:0!important;
  box-shadow:none!important;color:#243247!important;font-size:17px!important;
  font-weight:800!important;line-height:1.35!important;text-align:left!important;
  padding:4px 0 12px!important;margin:0 0 14px!important;
  min-height:0!important;cursor:default!important;pointer-events:none!important;
}
#checkout-process-2 .turram-review-table td{color:#26313d!important;}
#checkout-process-2 .turram-review-table td:nth-child(2){font-variant-numeric:tabular-nums;}
#checkout-process-2 textarea{min-height:96px;resize:vertical;}
#checkout-process-2 #shipping-address input,#checkout-process-2 #shipping-address select{min-height:42px;border:1px solid #cbd2da;background:#fff;padding:8px 10px;}
@media(max-width:767px){
  #checkout-process-2 #shipping-address{padding:12px!important;background:#fff;border:1px solid #e6e9ee;border-radius:12px;}
  #checkout-process-2 #shipping-address table{border-collapse:separate;border-spacing:0 5px;}
  #checkout-process-2 #shipping-address td{font-size:14px!important;line-height:1.4;}
  #checkout-process-2 #shipping-address td:first-child{width:30%;padding-top:13px!important;}
  #checkout-process-2 #shipping-address td:nth-child(2){width:70%;}
  #checkout-process-2 #shipping-address input,#checkout-process-2 #shipping-address select{width:100%!important;font-size:16px!important;}
  #checkout-process-2 #div_delivery2>div[style*="width: 75%"]{background:#fff;border:1px solid #e6e9ee;border-radius:12px;padding:12px!important;}
  #checkout-process-2 #btn_place_order input{box-shadow:0 3px 9px rgba(20,28,40,.1);}
}

/* Mobile menu: keep the existing live-count cart button accessible while browsing. */
@media(max-width:767px){
  body.turram-loading-menu{padding-bottom:78px!important;}
  body.turram-loading-menu .navbar #cart{
    position:fixed!important;bottom:max(12px,env(safe-area-inset-bottom))!important;
    left:50%!important;right:auto!important;transform:translateX(-50%)!important;
    z-index:1025!important;width:180px!important;
    max-width:calc(100vw - 32px)!important;min-height:46px!important;
    margin:0!important;padding:10px 18px!important;
    border-radius:12px!important;border:1px solid rgba(255,255,255,.18)!important;
    box-shadow:0 4px 14px rgba(20,28,40,.2)!important;
    background-color:#243247!important;background-image:none!important;
    color:#fff!important;font-size:14px!important;font-weight:700!important;
    text-align:center!important;
  }
  body.turram-loading-menu.modal-open .navbar #cart{visibility:hidden!important;pointer-events:none!important;}
  body.turram-loading-menu .back-to-top{bottom:80px!important;}
}

/* Balti mobile order review: keep the full total and currency on one line. */
#checkout-process-2 #right-process-3 .turram-review-table td:first-child:not([colspan]){width:58%!important;}
#checkout-process-2 #right-process-3 .turram-review-table td:nth-child(2){width:42%!important;text-align:right!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;}
#checkout-process-2 #show_total_value,#checkout-process-2 .turram-order-review #show_total_value{display:inline-block!important;max-width:100%;white-space:nowrap!important;overflow-wrap:normal!important;word-break:keep-all!important;font-size:20px!important;font-weight:800!important;line-height:1.25!important;color:#8b1717;letter-spacing:-.3px;}
#checkout-process-2 .turram-order-review .turram-review-table td:has(#show_total_value){white-space:nowrap!important;overflow-wrap:normal!important;word-break:keep-all!important;}
#checkout-process-2 #right-process-3 .turram-review-table tr:has(#show_total_value) td{padding-top:15px!important;padding-bottom:15px!important;vertical-align:middle!important;}
#checkout-process-2 #right-process-3 .turram-review-table tr:has(#show_total_value) td:first-child{font-size:15px!important;font-weight:700!important;}
#checkout-process-2 #right-process-3 .turram-review-table td hr{margin:7px 0;border-color:#e6e8eb;}
@media(max-width:767px){
  .back-to-top{right:12px!important;bottom:12px!important;width:42px!important;height:42px!important;min-height:42px!important;padding:8px!important;opacity:.88;}
  #checkout-process-2 .turram-order-review{padding-bottom:64px!important;}
  #checkout-process-2 #right-process-3 .turram-review-table td{padding-top:7px!important;padding-bottom:7px!important;}
  #checkout-process-2 #right-process-3 .turram-review-table tr:has(#show_total_value) td:first-child{font-size:14px!important;}
}

/* Shared mobile page chrome: compact navigation and remove decorative hero bulk. */
@media(max-width:767px){
  .navbar.navbar-expand-lg{padding:10px 12px!important;gap:5px 10px!important;align-items:center!important;}
  .navbar .navbar-brand{flex:1 1 calc(100% - 62px)!important;max-width:calc(100% - 62px)!important;}
  .navbar .headerlinebyline{padding:0!important;gap:8px!important;align-items:center!important;}
  .navbar .headerlinebyline img{width:40px!important;max-width:40px!important;max-height:44px!important;}
  .navbar .headerlinebyline p{font-size:clamp(15px,4vw,18px)!important;line-height:1.2!important;margin:0!important;padding:0!important;}
  .navbar .navbar-toggler{padding:6px 9px!important;min-height:36px!important;}
  .navbar .LogedUserContent{font-size:12px!important;line-height:1.3!important;margin:0!important;}
  .navbar .LogedUserContent font{font-size:12px!important;}
  .navbar #cart{width:124px!important;min-width:0!important;min-height:38px!important;padding:7px 10px!important;margin:0!important;background-image:none!important;background-color:#243247!important;border:1px solid #5b6879!important;border-radius:9px!important;color:#fff!important;font-size:13px!important;box-shadow:none!important;}
  .container-xxl.position-relative.p-0>.hero-header{background:#f4f5f7!important;padding:8px 0!important;margin:0 0 12px!important;min-height:0!important;}
  .container-xxl.position-relative.p-0>.hero-header>.container{padding:0 12px!important;margin:0!important;}
  .container-xxl.position-relative.p-0>.hero-header h1{color:#243247!important;font-size:20px!important;line-height:1.3!important;margin:0!important;animation:none!important;}
  .container-xxl.position-relative.p-0+.container-xxl{padding-top:0!important;}
  .MainContainer .HeaderContainer .HeaderContent{min-height:0!important;}
  #header-cart-link{font-size:14px!important;}
}

/* Guest sign-in table: stack labels, inputs and helper copy without collisions. */
@media(max-width:767px){
  #checkout-process-1{padding:12px!important;}
  #checkout-process-1>span:first-of-type{display:block!important;font-size:18px!important;line-height:1.35!important;margin:0 0 14px!important;}
  #checkout-process-1>br{display:none!important;}
  #checkout-process-1>table{display:block!important;width:100%!important;max-width:100%!important;margin:0!important;border-collapse:collapse!important;}
  #checkout-process-1>table>tbody{display:block!important;width:100%!important;}
  #checkout-process-1>table>tbody>tr{display:block!important;width:100%!important;margin:0 0 12px!important;}
  #checkout-process-1>table>tbody>tr>td{display:block!important;width:100%!important;max-width:100%!important;padding:2px 0!important;vertical-align:top!important;}
  #checkout-process-1>table>tbody>tr>td:empty{display:none!important;}
  #checkout-process-1>table input:not([type=radio]){display:block!important;width:100%!important;max-width:100%!important;min-height:44px!important;font-size:16px!important;}
  #checkout-process-1>table #email+div{height:auto!important;min-height:0!important;font-size:12px!important;line-height:1.4!important;margin:5px 0 0!important;color:#687588!important;}
  #checkout-process-1>table #email+div span{color:#687588!important;}
  #checkout-process-1>table>tbody>tr>td:first-child span{font-size:14px!important;color:#46566c!important;font-weight:600!important;}
  #checkout-process-1>table input[type=radio]{vertical-align:middle!important;margin-right:8px!important;}
  #checkout-process-1>table>tbody>tr:has(input[type=radio]){margin:0 0 9px!important;}
}
