
:root {
    --text: #0b1220;
    --muted: #73809b;
    --border: #e6e9f2;
    --card: #ffffff;
    --ring: #7adacc;
    --ok: #0f7b3e;
    --brand: #ffd400;
    --brand-2: #e31b23;
    --radius: 14px;
    --shadow: 0 8px 28px rgba(15, 23, 42, .08);
    --bg: #f7f9fc;
}

.bg-app {
    background: var(--bg);
    color: var(--text);
}


.checkout-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    margin-top: 8px;
}

@media (max-width:960px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}


.panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.panel h1,
.panel h2,
.panel h3,
.panel h4 {
    margin: .25rem 0 .6rem;
}


.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: .2rem 0 10px;
}

.badge-soft {
    background: rgba(1, 255, 204, .12);
    border: 1px solid rgba(3, 97, 47, .35);
    color: #111827;
    min-width: 90px;
    padding: .25rem .55rem;
    border-radius: 999px;
    font-weight: 700;
}


.cart-panel .title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.cart-item .meta small {
    color: var(--muted);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding: 12px;
    border: 1px dashed #d9deea;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(1, 255, 204, .08), transparent);
}

.trust.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.trust .pill {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 600;
    color: var(--muted);
    text-align: center;
}


.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width:640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-label {
    font-weight: 700;
}

.form-control,
.form-select {
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--ring);
    border-color: transparent !important;
    box-shadow: none;
}

.help-text {
    color: var(--muted);
    font-size: .9rem;
}


.np-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.np-wrap img {
    height: 24px;
}


.radio-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 2px;
}

.radio-pills input {
    display: none;
}

.radio-pills label {
    border: 1px solid var(--border);
    background: #fff;
    padding: .5rem .85rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    user-select: none;
    transition: transform .06s ease, outline-color .2s ease;
}

.radio-pills input:checked+label {
    outline: 2px solid var(--ring);
    background: #f7f9fc;
}

.radio-pills label:active {
    transform: scale(.98);
}


.suggestion-ul {
    position: absolute;
    z-index: 30;
    top: 100%;
    left: 0;
    right: 0;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    max-height: 240px;
    overflow: auto;
}

.suggestion-item {
    padding: 8px 10px;
    cursor: pointer;
}

.suggestion-item:hover,
.suggestion-item.is-active {
    background: #f0f4fb;
}


.hr {
    height: 1px;
    background: linear-gradient(90deg, transparent, #eef1f6, transparent);
    border: 0;
    margin: 12px 0;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 800;
    text-decoration: none;
}

.btn-ghost {
    font-size: 1rem;
    font-weight: 600 !important;
    background: #fff;
    border-color: var(--border);
    color: var(--text);
}


.sticky-bar {
    position: sticky;
    bottom: 0;
    z-index: 10040;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(1.2) blur(6px);
    border-top: 1px solid var(--border);
    display: none;
}

.sticky-inner {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.sticky-title {
    font-weight: 800;
}


.breadcrumb {
    --bs-breadcrumb-divider-color: var(--muted);
    --bs-breadcrumb-divider: '›';
}

.breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    color: var(--muted);
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--text);
}


.form-check-input {
    width: 1.1rem;
    height: 1.1rem;
}

.was-validated :invalid {
    border-color: #dc3545 !important;
}

.cart-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}


.cart-item{
  --thumb: 72px;      
  --thumb-sm: 56px;   

  display:grid;
  grid-template-columns: var(--thumb) minmax(0,1fr) max-content;
  align-items:center;
  gap:12px;
  padding:12px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
}


.cart-thumb{
  inline-size: var(--thumb);
  aspect-ratio: 1 / 1;
  background:#f2f4f8;
  border-radius:10px;
  overflow:hidden;
}
.cart-thumb > img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}


.cart-item .meta{
  overflow:hidden;
}
.cart-item .meta .fw-semibold{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;            
}


.cart-item .text-end{
  min-width:max-content;
  text-align:right;
  white-space:nowrap;
}


@media (max-width:576px){
  .cart-item{
    grid-template-columns: var(--thumb-sm) minmax(0,1fr) max-content;
  }
  .cart-thumb{ inline-size: var(--thumb-sm); }
}


.text-truncate{ max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.line-clamp-2{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.checkout-grid{
  display:grid;
  
  grid-template-columns: minmax(0,1fr) clamp(260px, 32vw, 420px);
  gap:28px;
  align-items:start;
  margin-top:8px;
}


@media (max-width: 1200px){
  .checkout-grid{
    grid-template-columns: minmax(0,1fr) clamp(240px, 36vw, 380px);
  }
}


@media (max-width: 991.98px){
  .checkout-grid{ grid-template-columns: 1fr; }
  
  .cart-panel{ max-width:680px; margin-inline:auto; }
}


.form-panel, .cart-panel{ min-width:0; }

.cart-item{ grid-template-columns: var(--thumb) minmax(0,1fr) max-content; }
.cart-item .meta{ min-width:0; } 


@media (max-width: 480px){
  .trust.grid-3{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 446px){
  .trust.grid-3{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

.sticky-bar{ display:none; }


@media (max-width: 991.98px){
  .sticky-bar{ display:block; }
  #form-actions{ display:none !important; }

  
  main{ padding-bottom: 76px; } 
  .sticky-inner{ padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}
.suggestion-ul{
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1060;            
  max-height: 280px;        
  overflow: auto;
  margin-top: .25rem;
}


.suggestion-item.is-active{
  background-color: var(--bs-primary-bg-subtle, rgba(13,110,253,.15));
}


#street-field, #house-field { overflow: visible; }

.crt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 120px;
    height: 44px;
    padding: 0 16px;

    border-radius: 10px;
    border: 0;
    text-decoration: none;
    cursor: pointer;
    user-select: none;

    font-size: 1rem;              
    font-weight: 600 !important;              
    line-height: 1;                
    letter-spacing: -0.03em;       
    -webkit-font-smoothing: antialiased;
    font-smooth: antialiased;

    transition: background-color .12s linear,
                box-shadow .12s linear,
                color .12s linear,
                transform .12s linear;
}


.crt-primary {
    background-color: #10b981;
    color: #000000;
    border: 1px solid rgba(0,0,0,.08);

    box-shadow:
        0 2px 4px rgba(0,0,0,.18),
        0 8px 16px rgba(16,185,129,.32);
}

.crt-primary:hover {
    background-color: #14c99a;
    color: #000000;
    box-shadow:
        0 3px 6px rgba(0,0,0,.22),
        0 10px 18px rgba(20,201,154,.4);
}

.crt-primary:active {
    background-color: #0a8a63;
    color: #000000;
    box-shadow: inset 0 2px 4px rgba(0,0,0,.4);
    transform: translateY(1px);
}
