/*
 * Utstyrsleie plugin styles
 * Keep this file for frontend/admin styles used by the plugin.
 */

.utstyrsleie {
  box-sizing: border-box;
}

.utstyrsleie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 0 0 28px;
}

.utstyrsleie-card {
  border: 1px solid #e3e6ea;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 10px rgba(16, 24, 40, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.utstyrsleie-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.12);
}

.utstyrsleie-card-image {
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #f5f7fa, #eef2f6);
}

.utstyrsleie-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.utstyrsleie-no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 14px;
}

.utstyrsleie-card-body {
  padding: 14px;
}

.utstyrsleie-card-title {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.25;
}

.utstyrsleie-price {
  margin: 0 0 14px;
  font-weight: 600;
  color: #0f5132;
  font-size: 16px;
}

.utstyrsleie-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.utstyrsleie-btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
}

.utstyrsleie-btn-primary {
  background: #0b6bcb;
  color: #fff;
}

.utstyrsleie-btn-primary:hover {
  background: #095db2;
  color: #fff;
}

.utstyrsleie-btn-secondary {
  background: #eef2f7;
  color: #223;
}

.utstyrsleie-btn-secondary:hover {
  background: #dce4ef;
  color: #223;
}

.utstyrsleie-doc-missing {
  font-size: 13px;
  color: #6b7280;
}

.utstyrsleie-order-panel {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid #e3e6ea;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #fafbfc);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.06);
}

.utstyrsleie-order-form .utstyrsleie-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px 16px;
}

.utstyrsleie-field {
  margin: 0;
}

.utstyrsleie-field-full {
  grid-column: 1 / -1;
}

.utstyrsleie-order-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #23303f;
}

.utstyrsleie-order-form input,
.utstyrsleie-order-form select,
.utstyrsleie-order-form textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #cfd7e1;
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
}

.utstyrsleie-order-form input:focus,
.utstyrsleie-order-form select:focus,
.utstyrsleie-order-form textarea:focus {
  border-color: #0b6bcb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 107, 203, 0.12);
}

.utstyrsleie-order-summary {
  border: 1px solid #d6e6f7;
  background: #f3f8ff;
  border-radius: 10px;
  padding: 12px;
}

.utstyrsleie-order-summary h4 {
  margin: 0 0 8px;
}

.utstyrsleie-order-summary p {
  margin: 6px 0;
}

.utstyrsleie-summary-product {
  margin: 0;
  font-size: 16px;
}

.utstyrsleie-summary-subproduct {
  margin: 4px 0 10px;
  color: #495668;
  font-size: 14px;
}

.utstyrsleie-summary-total {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #b7cae0;
  font-size: 18px;
  font-weight: 700;
  color: #0f5132;
}

.utstyrsleie-submit {
  border: none;
  border-radius: 9px;
  padding: 10px 14px;
  background: #0b6bcb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.utstyrsleie-submit:hover {
  background: #095db2;
}

@media (max-width: 760px) {
  .utstyrsleie-order-form .utstyrsleie-form-grid {
    grid-template-columns: 1fr;
  }
}
