:root{
    --bg: #f7fafc;
    --card: #ffffff;
    --muted: #6b7280;
    --accent: #2563eb;
    --accent-contrast: #ffffff;
    --row-odd: #fbfdff;
    --shadow: 0 6px 18px rgba(28, 45, 76, 0.08);
    --radius: 12px;
    --gap: 16px;
    --breakpoint: 720px;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  }
  .column-image{width:150px;}
#kievcoffee-spinner{
  display:block;
  margin:0 auto;
  text-align:center;
}
/* Make the badge float in the top right corner of the button */
.kievcoffee-badge {
  background-color: #fa3e3e;
    border-radius:50%;
    color: #fff;
    display: inline-block;
    padding-left: 8px;
    padding-right: 8px;
    margin-left:5px;
    text-align: center;
}
.kievcoffee-product {
            width: 500px;
            max-width:90%;
            border: 1px solid #ccc;
            padding: 20px;
            text-align: center;
            border-radius: 8px;
            box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
        }
.kievcoffee-product img {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
        }
.kievcoffee-product .price {
            font-size: 20px;
            color: #3B2A2A;
            margin: 10px 0;
        }
.kievcoffee-multiple-discount{
    font-size: 14px;
            color: #3B2A2A;
            margin: 10px 0;
}
.kievcoffee-product .description,.kievcoffee-product .smaller {
            font-size: 14px;
            color: #3B2A2A;
            margin: 10px 0;
        }
.kievcoffee-product button {
            padding: 10px 20px;
            background-color: #A65E2E;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
        }
.kievcoffee-product button:hover {
            background-color: #D9B68C;
        }

        .kievcoffee-form-message{display:none;}
.kievcoffee-form-group {
    margin-bottom: 15px;
}
.kievcoffee-form-group label{
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: 700;
}
.kievcoffee-form-control {
    display: block;
    width: 95%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #3B2A2A;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}
textarea.kievcoffee-form-control{height:100px;}
.kievcoffee-form-control-file{

    display: block;
    width: 100%;

}
.kievcoffee-form-check {
  position: relative;
  display: block;
  margin-bottom: 15px;
}
.kievcoffee-form-check  input[type=checkbox],.kievcoffee-form-check  input[type=radio] {
  box-sizing: border-box;
  padding: 0;
}
.kievcoffee-form-check-label {
  margin-bottom: 0;
}
.kievcoffee-form-checkbox {
  position: absolute;
  margin: 0 0 0 -1.25rem;
  
}
 .cart {
      max-width: 800px;
      margin: auto;
      background: #fff;
      border-radius: 8px;
      box-shadow: 0 0 10px rgba(0,0,0,0.05);
      padding: 20px;
    }

    .cart h2 {
      margin-bottom: 20px;
      font-size: 24px;
      border-bottom: 2px solid #eee;
      padding-bottom: 10px;
    }

    .cart-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid #eee;
      padding: 15px 0;
    }

    .cart-item img {
      width: 80px;
      height: auto;
      border-radius: 6px;
      margin-right: 20px;
    }

    .item-details {
      flex: 2;
      display: flex;
      align-items: center;
    }

    .item-info {
      display: flex;
      flex-direction: column;
    }

    .item-name {
      font-weight: bold;
      margin-bottom: 5px;
    }

    .item-qty {
      color: #555;
      font-size: 14px;
    }

    .item-price,
    .item-total {
      flex: 1;
      text-align: right;
      font-weight: bold;
      color: #3B2A2A;
    }

    .cart-total {
      text-align: right;
      font-size: 20px;
      font-weight: bold;
      margin-top: 20px;
    }

    .checkout-btn,.button{
      margin-top: 20px;
      display: inline-block;
      background-color: #56211A;
      color: white;
      padding: 12px 20px;
      border: none;
      border-radius: 5px;
      text-decoration: none;
      font-size: 16px;
    }

    .checkout-btn:hover,.button:hover {
      background-color: #D9B68C;
      color:#56211A
    }

    @media (max-width: 600px) {
      .cart-item {
        flex-direction: column;
        align-items: flex-start;
      }

      .item-price,
      .item-total {
        text-align: left;
        margin-top: 10px;
      }
    }
    .kievcoffee-form-message,.hidden{display:none;}


    .table-card{
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px;
    overflow: hidden;
  }

  /* horizontal scroll container when narrow */
  .table-wrap{
    width: 100%;
    overflow-x: auto;
  }

  table.modern-table{
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    min-width: 640px; /* allow horizontal scroll on tiny devices */
    table-layout: fixed;
  }

  /* header */
  .modern-table thead th{
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    text-align: left;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #0b1220;
    border: 1px solid #3B2A2A;
    z-index: 2;
  }

  

  /* body cells */
 .modern-table th,
.modern-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.25;
  white-space: normal;       /* allow wrapping */
  word-break: break-word;    /* break long words if needed */
  border: 1px solid #3B2A2A;
}

  /* zebra */
  .modern-table tbody tr:nth-child(odd) td{
    background: var(--row-odd);
  }

  /* hover */
  .modern-table tbody tr:hover td{
    background: linear-gradient(90deg, rgba(37,99,235,0.04), rgba(37,99,235,0.02));
  }

  /* last row rounding */
  .modern-table tbody tr:last-child td:first-child{ border-bottom-left-radius: 12px; }
  .modern-table tbody tr:last-child td:last-child{ border-bottom-right-radius: 12px; }

  /* small caption */
  .modern-table caption{
    caption-side: top;
    text-align: left;
    padding: 10px 16px;
    font-weight: 700;
    color: #0b1220;
  }

  /* small UI elements */
  .badge{
    display: inline-block;
    padding: 6px 8px;
    font-size: 12px;
    border-radius: 999px;
    background: rgba(37,99,235,0.12);
    color: var(--accent);
    font-weight: 600;
  }

  .muted{
    color: var(--muted);
    font-size: 13px;
  }

  .action-btn{
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  .primary{
    background: var(--accent);
    color: var(--accent-contrast);
    box-shadow: 0 4px 10px rgba(37,99,235,0.12);
  }
.modern-table tr.highlight td {
  font-weight: 700;
  background: #D9B68C;
}
  /* responsive: stack rows on narrow screens */
  @media (max-width: calc(var(--breakpoint) - 1px)) {
    .table-card{ padding: 6px; }
    table.modern-table{
      min-width: 100%;
      border: 0;
      display: block;
    }

    .modern-table thead{
      display: none; /* hide header on small screens */
    }

    .modern-table tbody{
      display: block;
    }

    .modern-table tbody tr{
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 8px;
      padding: 12px;
      margin: 10px 6px;
      background: var(--card);
      border-radius: 10px;
      box-shadow: 0 2px 8px rgba(15,23,42,0.04);
      border: 1px solid #eef2f7;
    }

    .modern-table tbody tr:nth-child(odd){
      /* keep subtle background uniform on stacked cards */
      background: var(--card);
    }

    .modern-table tbody td{
      display: block;
      white-space: normal;
      border: 0;
      padding: 0;
    }

    
    /* use data-label attribute to show headings */
    .modern-table tbody td::before{
      content: attr(data-label);
      display: block;
      font-size: 12px;
      color: var(--muted);
      margin-bottom: 6px;
      font-weight: 600;
    }

    .modern-table tbody td.value{
      font-size: 14px;
      color: #0b1220;
    }

    .modern-table tbody td.actions{
      justify-self: end;
      align-self: center;
    }
  }
