/* Modern Cart Styles */
.checkout-container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.checkout-container h2 {
  color: #333;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.order-item {
  border-bottom: 1px solid #f0f0f0;
  padding: 1rem 0;
}

.order-item:last-child {
  border-bottom: none;
}

.order-item .flex {
  display: flex;
  align-items: flex-start;
}

.order-item .w-20 {
  width: 80px;
  height: 80px;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.order-item .w-20 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-item .ml-4 {
  margin-left: 1rem;
}

.order-item .flex-1 {
  flex: 1;
}

.order-item .flex.justify-between {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.order-item .font-medium {
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.25rem;
  margin: 0;
}

.order-item .text-blue-600 {
  color: #2563eb;
  text-decoration: none;
}

.order-item .text-blue-600:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.order-item .text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.order-item .text-gray-600 {
  color: #6b7280;
}

.order-item .mt-1 {
  margin-top: 0.25rem;
}

.order-item .mt-2 {
  margin-top: 0.5rem;
}

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

.order-item .w-6 {
  width: 24px;
  height: 24px;
  border: 1px solid #d1d5db;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.order-item .w-6:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.order-item .mx-2 {
  margin: 0 0.5rem;
  min-width: 20px;
  text-align: center;
  font-weight: 500;
}

.order-item .ml-4 {
  margin-left: 1rem;
}

.order-item .text-red-600 {
  color: #dc2626;
  text-decoration: none;
  cursor: pointer;
}

.order-item .text-red-600:hover {
  text-decoration: underline;
}

/* Totals Section */
.pt-4 {
  padding-top: 1rem;
}

.border-t {
  border-top: 1px solid #e5e7eb;
}

.mt-4 {
  margin-top: 1rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.relative {
  position: relative;
}

.flex-1 {
  flex: 1;
}

.form-control {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.875rem;
}

.form-control:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.pr-24 {
  padding-right: 6rem;
}

.absolute {
  position: absolute;
}

.right-1 {
  right: 0.25rem;
}

.top-1 {
  top: 0.25rem;
}

.btn-secondary {
  background: #6b7280;
  color: #fff;
  border: none;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background: #4b5563;
}

.rounded {
  border-radius: 4px;
}

.text-sm {
  font-size: 0.875rem;
}

/* Totals Display */
.flex.justify-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.text-gray-600 {
  color: #6b7280;
}

.text-green-600 {
  color: #059669;
}

.font-bold {
  font-weight: 700;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.coffee-primary-text {
  color: #5f4b32;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .order-item .flex {
    flex-direction: column;
  }

  .order-item .w-20 {
    width: 60px;
    height: 60px;
    margin-bottom: 0.5rem;
  }

  .order-item .ml-4 {
    margin-left: 0;
  }

  .order-item .flex.justify-between {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-item .font-medium {
    margin-bottom: 0.25rem;
  }
}

/* Empty Cart State */
.text-center {
  text-align: center;
}

.py-8 {
  padding: 2rem 0;
}

.text-gray-500 {
  color: #6b7280;
}

/* Quantity Controls */
.quantity-decrease,
.quantity-increase {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.quantity-display {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Remove Button */
.remove-item {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;
}

/* Promo Code Section */
.promo-code-section {
  background: #f9fafb;
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

/* VAT Information */
.vat-info {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* Bootstrap 3 Modern Cart Styles */
.checkout-sidebar .panel {
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.checkout-sidebar .panel-heading {
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
  padding: 10px 15px;
}

.checkout-sidebar .panel-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.checkout-sidebar .panel-body {
  padding: 15px;
}

.checkout-sidebar .media {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.checkout-sidebar .media:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.checkout-sidebar .media-left {
  padding-right: 10px;
}

.checkout-sidebar .media-left a {
  display: block;
  width: 47px;
  height: 47px;
  overflow: hidden;
  text-decoration: none;
}

.checkout-sidebar .media-left a:hover {
  text-decoration: none;
}

.checkout-sidebar .media-object {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.checkout-sidebar .media-heading {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
}

.checkout-sidebar .media-heading a {
  color: #337ab7;
  text-decoration: none;
}

.checkout-sidebar .media-heading a:hover {
  color: #23527c;
  text-decoration: underline;
}

.checkout-sidebar .text-muted {
  color: #777;
}

.checkout-sidebar .text-primary {
  color: #337ab7;
}

.checkout-sidebar .text-danger {
  color: #d9534f;
}

.checkout-sidebar .text-success {
  color: #5cb85c;
}

.checkout-sidebar .btn-group-sm > .btn {
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 3px;
}

.checkout-sidebar .btn-link {
  color: #337ab7;
  text-decoration: none;
  padding: 0;
  margin-left: 10px;
}

.checkout-sidebar .btn-link:hover {
  color: #23527c;
  text-decoration: underline;
}

.checkout-sidebar .btn-link.text-danger {
  color: #d9534f;
}

.checkout-sidebar .btn-link.text-danger:hover {
  color: #c9302c;
}

.checkout-sidebar .form-group {
  margin-bottom: 15px;
}

.checkout-sidebar .input-group {
  position: relative;
  display: table;
  border-collapse: separate;
}

.checkout-sidebar .input-group .form-control {
  position: relative;
  z-index: 2;
  float: left;
  width: 100%;
  margin-bottom: 0;
}

.checkout-sidebar .input-group-btn {
  position: relative;
  font-size: 0;
  white-space: nowrap;
  display: table-cell;
  vertical-align: middle;
}

.checkout-sidebar .input-group-btn > .btn {
  position: relative;
  border-radius: 0 4px 4px 0;
  margin-left: -1px;
}

.checkout-sidebar .row {
  margin-left: -15px;
  margin-right: -15px;
}

.checkout-sidebar .col-xs-6 {
  position: relative;
  min-height: 1px;
  padding-left: 15px;
  padding-right: 15px;
  float: left;
  width: 50%;
}

.checkout-sidebar .col-xs-8 {
  position: relative;
  min-height: 1px;
  padding-left: 15px;
  padding-right: 15px;
  float: left;
  width: 66.66666667%;
}

.checkout-sidebar .col-xs-4 {
  position: relative;
  min-height: 1px;
  padding-left: 15px;
  padding-right: 15px;
  float: left;
  width: 33.33333333%;
}

.checkout-sidebar .col-xs-12 {
  position: relative;
  min-height: 1px;
  padding-left: 15px;
  padding-right: 15px;
  float: left;
  width: 100%;
}

.checkout-sidebar .text-right {
  text-align: right;
}

.checkout-sidebar .text-center {
  text-align: center;
}

.checkout-sidebar hr {
  margin: 15px 0;
  border: 0;
  border-top: 1px solid #eee;
}

.checkout-sidebar .disabled {
  opacity: 0.6;
  pointer-events: none;
}

.checkout-sidebar .fa {
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.checkout-sidebar .fa-minus:before {
  content: "\f068";
}

.checkout-sidebar .fa-plus:before {
  content: "\f067";
}

.checkout-sidebar .fa-shopping-cart:before {
  content: "\f07a";
}

.checkout-sidebar .fa-gift:before {
  content: "\f06b";
}

.checkout-sidebar .fa-image:before {
  content: "\f03e";
}

/* Responsive adjustments for Bootstrap 3 */
@media (max-width: 768px) {
  .checkout-sidebar .col-xs-6,
  .checkout-sidebar .col-xs-8,
  .checkout-sidebar .col-xs-4,
  .checkout-sidebar .col-xs-12 {
    width: 100%;
    float: none;
  }

  .checkout-sidebar .media-left {
    display: block;
    margin-bottom: 10px;
    text-align: center;
  }

  .checkout-sidebar .media-left a {
    display: inline-block;
    width: 60px;
    height: 60px;
  }

  .checkout-sidebar .media-body {
    display: block;
  }

  .checkout-sidebar .btn-group {
    margin-bottom: 10px;
  }
}
