@charset "UTF-8";
*, *::before, *::after {
  box-sizing: border-box;
}

.custom-cart-container {
  width: 100%;
  max-width: 1000px;
  margin: 20px auto;
  background: #fff;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  overflow: hidden;
}

@media (max-width: 1040px) {
  .custom-cart-container {
    margin: 20px 10px;
    max-width: calc(100% - 20px);
  }
}

.cart-header {
  background: #f8f9fa;
  padding: 15px 20px;
  border-bottom: 1px solid #e1e5e9;
  position: relative;
}

.cart-header h5 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #495057;
}

.cart-header h5::before {
  content: "📋";
  margin-right: 8px;
  font-size: 16px;
}

.form-header {
  background: #f8f9fa;
  padding: 15px 20px;
  border-top: 1px solid #e1e5e9;
  border-bottom: 1px solid #e1e5e9;
  position: relative;
}

.form-header h5 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #495057;
}

.form-header h5::before {
  content: "✉️";
  margin-right: 8px;
  font-size: 16px;
}

.cart-form {
  padding: 20px;
  background: #fff;
}

.cart-form .wpforms-container {
  background: transparent;
  padding: 0;
  margin: 0;
}

.cart-content {
  padding: 15px;
}

.cart-content .cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
  font-size: 16px;
  margin: 0;
}

.cart-content .item {
  display: grid;
  grid-template-columns: 40px 100px 1fr 120px;
  gap: 15px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f1f3f4;
  font-size: 14px;
}

@media (max-width: 900px) and (min-width: 769px) {
  .cart-content .item {
    grid-template-columns: 35px 80px 1fr 100px;
    gap: 12px;
  }
}

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

.cart-content .item .td.remove {
  text-align: center;
}

.cart-content .item .td.remove .remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #dc3545;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.cart-content .item .td.remove .remove:hover {
  background: #c82333;
  transform: scale(1.1);
}

.cart-content .item .td.image {
  text-align: center;
}

.cart-content .item .td.image img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e1e5e9;
  transition: transform 0.2s ease;
}

.cart-content .item .td.image img:hover {
  transform: scale(1.05);
}

.cart-content .item .td.product-title {
  font-size: 15px;
  font-weight: 500;
  color: #495057;
  line-height: 1.4;
  padding-right: 10px;
  display: flex;
  align-items: center;
}

.cart-content .item .td.quantity {
  text-align: center;
}

.cart-content .item .td.quantity input {
  width: 80px;
  height: 36px;
  text-align: center;
  border: 1px solid #e1e5e9;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  padding: 0 8px;
  transition: all 0.2s ease;
}

.cart-content .item .td.quantity input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.cart-content .item .td.quantity input:hover {
  border-color: #007bff;
}

@media (max-width: 900px) and (min-width: 769px) {
  .custom-cart-container {
    margin: 15px;
  }
  .cart-header,
  .form-header {
    padding: 12px 15px;
  }
  .cart-header h5,
  .form-header h5 {
    font-size: 17px;
  }
  .cart-form {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .custom-cart-container {
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  .cart-header,
  .form-header {
    padding: 15px;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  }
  .cart-header h5,
  .form-header h5 {
    color: #fff;
    font-size: 16px;
  }
  .cart-header h5::before,
  .form-header h5::before {
    filter: brightness(0) invert(1);
  }
  .cart-form {
    padding: 15px;
  }
  .cart-form .wpforms-container {
    background: transparent;
  }
  .cart-content {
    padding: 12px;
  }
  .cart-content .cart-empty {
    padding: 30px 15px;
    font-size: 15px;
  }
  .cart-content .item {
    display: block;
    position: relative;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  }
  .cart-content .item .td.remove {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
  }
  .cart-content .item .td.remove .remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #dc3545;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.3);
  }
  .cart-content .item .td.remove .remove:hover {
    background: #c82333;
    transform: scale(1.1);
  }
  .cart-content .item .td.image,
  .cart-content .item .td.product-title {
    display: inline-block;
    vertical-align: top;
  }
  .cart-content .item .td.image {
    margin-right: 15px;
    margin-bottom: 10px;
  }
  .cart-content .item .td.image img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    object-fit: cover;
  }
  .cart-content .item .td.product-title {
    width: calc(100% - 120px);
    font-size: 16px;
    font-weight: normal;
    color: #343a40;
    line-height: 1.3;
    margin: 0;
    text-align: left;
    padding-top: 5px;
  }
  .cart-content .item .td.quantity {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 5px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
  }
  .cart-content .item .td.quantity::before {
    content: attr(data-title);
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
  }
  .cart-content .item .td.quantity input {
    width: 80px;
    height: 40px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    background: #fff;
    padding: 0 8px;
    flex-shrink: 0;
  }
  .cart-content .item .td.quantity input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
  }
}

@media (max-width: 480px) {
  .custom-cart-container {
    margin: 0 auto;
    border-radius: 6px;
  }
  .cart-header,
  .form-header {
    padding: 12px 15px;
  }
  .cart-header h5,
  .form-header h5 {
    font-size: 15px;
  }
  .cart-form {
    padding: 12px;
  }
  .cart-content {
    padding: 10px;
  }
  .cart-content .cart-empty {
    padding: 25px 10px;
    font-size: 14px;
  }
  .cart-content .item {
    padding: 12px;
    margin-bottom: 10px;
  }
  .cart-content .item .td.image {
    margin-right: 12px;
    margin-bottom: 8px;
  }
  .cart-content .item .td.image img {
    width: 70px;
    height: 70px;
    border-radius: 5px;
  }
  .cart-content .item .td.product-title {
    width: calc(100% - 110px);
    font-size: 15px;
    font-weight: normal;
    line-height: 1.3;
  }
  .cart-content .item .td.quantity {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
  }
  .cart-content .item .td.quantity::before {
    content: attr(data-title);
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
  }
  .cart-content .item .td.quantity input {
    width: 70px;
    height: 36px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    padding: 0 8px;
    flex-shrink: 0;
  }
  .cart-content .item .td.quantity input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
  }
  .cart-content .item .td.remove {
    position: absolute;
    top: 8px;
    right: 8px;
  }
  .cart-content .item .td.remove .remove {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }
}

.wpforms-field-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(calc(50% - 0.5rem), 1fr));
  grid-gap: 1rem;
}

.wpforms-field-container .wpforms-field {
  padding: 5px 0 !important;
}

.wpforms-field-container .wpforms-field input, .wpforms-field-container .wpforms-field textarea {
  width: 100%;
  max-width: 100% !important;
  border-radius: 6px;
  border: 1px solid #ced4da;
  padding: 10px 12px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.wpforms-field-container .wpforms-field input:focus, .wpforms-field-container .wpforms-field textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.wpforms-field-container .wpforms-field textarea {
  min-height: 100px;
  resize: vertical;
}

.wpforms-field-container .wpforms-field.wpforms-field-textarea {
  grid-column: span 2;
}

@media (max-width: 632px) {
  .wpforms-field-container {
    grid-template-columns: 1fr;
  }
  .wpforms-field-container .wpforms-field.wpforms-field-textarea {
    grid-column: span 1;
  }
}

.wpforms-submit-container {
  margin-top: 20px;
  text-align: center;
}

.wpforms-submit-container .wpforms-submit {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wpforms-submit-container .wpforms-submit:hover {
  background: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.wpforms-submit-container .wpforms-submit:active {
  transform: translateY(0);
}
