.product-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.text-color {
  color: #45464579;
  font-weight: 400;
}

.short-heading {
  color: #854d0e;
}

.para {
  color: #a16207;
}

.btn-quantity {
  width: 30px;
  height: 30px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(197, 197, 197) !important;
  background-color: #f8f9fa;
}

.trash-icon {
  color: #dc3545;
  font-size: 1.2rem;
}

.cart-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  border: 1px solid #dee2e6;

  border-radius: 8px;
  /*  overflow: hidden;*/
  margin-bottom: 20px;
  background-color: #fff;
}

.cart-table th,
.cart-table td {
  padding: 15px;
  vertical-align: middle;
}

@media (max-width: 450px) {
  .cart-table th,
  .cart-table td {
    padding: 5px;
  }
}

.seller-header {
  background-color: #fff;
  border-bottom: 1px solid #dee2e6;
}

.shipping-row {
  background-color: #fff;
  border-top: 1px solid #dee2e6;
}

.summary-box {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  background-color: #fff;
}

.btn-checkout {
  background-color: #28a745;
  color: white;
  width: 100%;
  padding: 10px;
  border: none;
}

.alert-custom {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
  background-color: #fefce8;
}

.line {
  border-bottom: 1px solid rgba(88, 88, 88, 0.178) !important;
}

.alert-custom i {
  color: #ffc107;
  margin-right: 10px;
}
@media (min-width: 600px) {
  .cart-item {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }
  .product-img {
    margin-right: 15px;
  }
  .quantity-control {
    justify-content: flex-start;
  }
}

@media (max-width: 400px) {
  .card-custom {
    padding: 5px;
  }
}

/* Shipping warning */
.ckwarninline-wrap {
  margin: 16px 0 12px;
  border: 1px solid #f3c6c6;
  background: #fff5f5;
  border-radius: 12px;
  overflow: hidden;
}

.ckwarninline-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #f8d7da;
  color: #b42318;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.ckwarninline-icon {
  font-size: 18px;
  line-height: 1;
}

.ckwarninline-body {
  padding: 12px 14px;
}

.ckwarninline-copy {
  margin: 0 0 10px 0;
  color: #7a271a;
  font-size: 14px;
  line-height: 1.45;
}

.ckwarninline-item {
  border: 1px solid #f2d7d9;
  background: #fdecee;
  border-radius: 10px;
  padding: 10px 12px;
}

.ckwarninline-item-title {
  margin: 0 0 2px 0;
  color: #1d2939;
  font-size: 15px;
  font-weight: 600;
}

.ckwarninline-item-meta {
  margin: 0 0 2px 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.4;
}

.ckwarninline-item-error {
  margin: 0;
  color: #b42318;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.checkout-static-disable-continue {
  pointer-events: none !important;
  opacity: 0.55 !important;
  cursor: not-allowed !important;
}

/* Cart quantity field */
.quantityfield {
  width: 15% !important;
  border: 1px solid rgb(197, 197, 197) !important;
  text-align: center;
}

/* Modal */
.modal {
  z-index: 99999999;
}

#addresslist .modal-content,
#srConfirmModal .modal-content {
  border: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(13, 35, 18, 0.16);
}

#addresslist .modal-header,
#srConfirmModal .modal-header {
  background: linear-gradient(180deg, #f5faef 0%, #f0f8e6 100%);
  border-bottom: 1px solid #deebd0;
  padding: 14px 18px;
}

#addresslist .modal-title,
#srConfirmModal .modal-title {
  color: #1d4422;
  font-size: 18px;
  font-weight: 700;
}

#addresslist .modal-body {
  background: #ffffff;
  padding: 18px;
}

#addresslist .address-list {
  border: 1px solid #e5ecd9;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #fcfef8;
}

#addresslist .address-list input[type="radio"] {
  transform: scale(1.08);
  accent-color: #00a651;
}

#addresslist .address-list label {
  margin: 0;
  color: #1f2937;
  line-height: 1.45;
}

#addresslist .required-label {
  margin-bottom: 6px;
  color: #1f2937;
  font-weight: 600;
}

#addresslist .help-block {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 12px;
}

#addresslist .form-control {
  min-height: 42px;
  border: 1px solid #cdd7c2;
  border-radius: 8px;
  box-shadow: none;
}

#addresslist textarea.form-control {
  min-height: 96px;
  resize: vertical;
}

#addresslist .form-control:focus {
  border-color: #00a651;
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.14);
}

#addresslist .form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

#addresslist .field-error-text,
#addresslist .error {
  margin-top: 6px;
  color: #dc3545;
  font-size: 12px;
  font-weight: 500;
}

#addresslist .address-actions,
#addresslist .dynamicVendorId {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

#addresslist .btn-step-continue,
#addresslist .address-modal-continue-btn,
#srConfirmModal .address-modal-continue-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 124px;
  height: 38px;
  padding: 0 18px;
  background-color: #00a651;
  color: #fff !important;
  border: 1.5px solid #00a651;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

#addresslist .btn-step-continue:hover:not(:disabled),
#addresslist .address-modal-continue-btn:hover:not(:disabled),
#srConfirmModal .address-modal-continue-btn:hover:not(:disabled) {
  background-color: transparent;
  color: #00a651 !important;
  border-color: #00a651;
}

#addresslist .btn-step-continue:disabled,
#addresslist .address-modal-continue-btn:disabled,
#addresslist .btn-step-continue.disabled,
#addresslist .address-modal-continue-btn.disabled,
#srConfirmModal .address-modal-continue-btn:disabled,
#srConfirmModal .address-modal-continue-btn.disabled {
  background-color: #9ca3af;
  border-color: #9ca3af;
  color: #fff !important;
  cursor: not-allowed;
  opacity: 1;
}

/* Confirm Shipping Request modal footer -- mirrors the address-modal action
   row (.dynamicVendorId) spacing/alignment, plus a Cancel button matching
   the app's muted secondary-action style. */
#srConfirmModal .modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #ffffff;
  border-top: 1px solid #eee;
}

#srConfirmModal .address-modal-cancel-btn {
  padding: 0 4px;
  background: none;
  border: none;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
  transition: color .2s ease;
}

#srConfirmModal .address-modal-cancel-btn:hover {
  color: #1f2937;
}

#addresslist .btn-guest-change {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 110px;
  height: 38px;
  padding: 0 16px;
  background-color: #fff;
  color: #2563eb;
  border: 1.5px solid #2563eb;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

#addresslist .btn-guest-change:hover {
  background-color: #2563eb;
  color: #fff !important;
  border-color: #2563eb;
}

@media (min-width: 576px) {
  .modal-dialog {
    margin: 13% auto;
    max-width: 500px;
  }
}

/* Buttons */
.btn {
  -webkit-box-shadow: none;
  box-shadow: none;
  border: 1px solid transparent;
}

.btn-pink {
  background-color: #e2e2e2 !important;
  color: black !important;
}

.btn-theme {
  background-color: #86bd43;
  color: white;
}

button.close {
  padding: 0;
  background-color: transparent;
  border: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.close {
  float: right;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: 0.5;
}

.btn-outline-danger {
  color: #dc3545;
  border-color: #dc3545 !important;
}

/* Custom tooltip */
.custom-tooltip-container {
  position: relative;
  display: inline-block;
}

.custom-tooltip-container .custom-tooltip-text {
  visibility: hidden;
  width: 280px;
  color: #2e7d32;
  text-align: left;
  background-color: #e8fbe5;
  border-radius: 6px;
  padding: 6px 8px;
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  right: -8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #b9e7b1;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
}

.custom-tooltip-container .custom-tooltip-text::after {
  content: "";
  position: absolute;
  bottom: 100%;
  right: 10px;
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent #e8fbe5 transparent;
}

.custom-tooltip-container:hover .custom-tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Minimum amount info */
.minimum-amount-info {
  color: #a16207;
  border-radius: 50%;
  padding: 2px 6px;
  font-weight: bold;
  font-size: 14px;
  display: inline-block;
  line-height: 1;
  cursor: pointer;
}

/* Store link */
.store-link {
  cursor: pointer;
  text-decoration: none;
  margin: 0 !important;
}

.store-link:hover {
  text-decoration: underline;
}

/* Password toggle icon */
.password-toggle-icon {
  position: absolute;
  top: 75%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
}

/* Minimum order warning */
.error-popupshow-vendor-minimum:focus,
.error-popupshow-vendor-minimum:active {
  outline: none !important;
  border: 1px solid #dee2e6 !important;
  box-shadow: none !important;
}

.minimum-order-warning {
  background-color: #fff3cd;
  color: #a16207;
  padding: 5px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.minimum-order-warning i {
  color: #ffc107;
}

/* ------------------------------------------------------------------
 * Shipping Request button — disabled state + global tooltip
 * (Used by View/PlantProducts/mycart.ctp)
 * ------------------------------------------------------------------ */
.is-btn-disabled {
  box-shadow: none !important;
}

/* Single global tooltip (appended to <body> via JS) */
#globalShipTooltip {
  position: fixed;
  display: none;
  background: #fff;
  color: #333;
  border: 1px solid #f5c6cb;
  border-left: 4px solid #dc3545;
  text-align: left;
  min-width: 230px;
  max-width: 300px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.55;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  z-index: 2147483647;
  pointer-events: none;
}

#globalShipTooltip .tip-icon {
  font-size: 15px;
  margin-right: 4px;
  vertical-align: middle;
}

#globalShipTooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #f5c6cb;
}

#globalShipTooltip.tip-below::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #f5c6cb;
}

.empty-cart-btn:hover {
  background-color: #005439 !important;
  color: #fff !important;
}

/* Shipping Request indicator on cart plant/product/bundle rows */
tr.cart-row-sr {
  border-left: 4px solid #198754;
  background-color: #f2faf3;
}

tr.cart-row-sr:hover {
  background-color: #e9f7ea;
}

tr.cart-row-sr td {
  background-color: transparent;
}

tr.cart-row-sr td:last-child {
  border-right: 4px solid #198754;
}

.cart-item-sr-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}

.cart-item-sr-badge span {
  color: #198754;
  font-weight: 600;
  font-size: 12.5px;
}

.cart-item-sr-badge i {
  color: #198754;
  font-size: 13px;
  cursor: help;
}

.bundle-sr-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #198754;
  font-weight: 600;
  font-size: 12.5px;
  margin-left: 8px;
}

.bundle-sr-badge i {
  font-size: 13px;
  cursor: help;
}

/* Confirm Shipping Request modal -- shares the Billing/Shipping Address
   modal's #addresslist .modal-content/.modal-header/.modal-title rules and
   the generic .modal-dialog width/margins (see above) so the popup width,
   border radius, shadow, and header styling are identical. */
.sr-confirm-modal-body {
  max-height: 65vh;
  overflow-y: auto;
  padding: 0;
}

.sr-confirm-modal-intro {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fff8e6;
  border-bottom: 1px solid #f0e2b6;
  color: #7a5c00;
  font-size: 13.5px;
  line-height: 1.4;
  padding: 12px 20px;
}

.sr-confirm-modal-intro i {
  margin-top: 2px;
  flex-shrink: 0;
}

.sr-seller-group {
  padding: 12px 20px 18px;
}

.sr-seller-group + .sr-seller-group {
  border-top: 1px solid #eee;
}

.sr-seller-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #222;
  margin: 6px 0 12px;
}

.sr-seller-header i {
  color: #198754;
}

.sr-item-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f2faf3;
  border: 1px solid #cfeacf;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.sr-item-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e2e2e2;
  flex-shrink: 0;
}

.sr-item-info {
  flex: 1;
  min-width: 0;
}

.sr-item-name {
  font-weight: 600;
  font-size: 14px;
  color: #222;
  word-break: break-word;
}

.sr-item-meta {
  font-size: 12.5px;
  color: #555;
  margin-top: 2px;
}

.sr-item-badge {
  align-self: flex-start;
  background: #198754;
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  border-radius: 20px;
  padding: 3px 9px;
  white-space: nowrap;
  flex-shrink: 0;
}

.sr-bundle-pill {
  background: #eef8ee;
  color: #2f7d32;
  border: 1px solid #9ad19c;
  font-size: 10.5px;
  vertical-align: middle;
}

.sr-bundle-components {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #cfeacf;
}

.sr-bundle-component {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  padding: 4px 8px 4px 4px;
}

.sr-component-thumb {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.sr-component-name {
  font-size: 12px;
  color: #333;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sr-component-qty {
  font-size: 11px;
  color: #888;
  white-space: nowrap;
}

@media (max-width: 576px) {
  .sr-item-card {
    flex-wrap: wrap;
  }
  .sr-item-badge {
    order: 3;
  }
  .sr-component-name {
    max-width: 80px;
  }
}
