#order-opc {
  line-height: 1.6;
  padding: 20px 0;
  background: #F7F1E6;
}
#order-opc .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

#cart_title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #3B2A24;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
#cart_title .heading-counter {
  display: block;
  font-size: 16px;
  font-weight: 400;
  color: #6B5B50;
  margin-top: 10px;
  letter-spacing: normal;
}
#cart_title .heading-counter #summary_products_quantity {
  font-weight: 600;
  color: #3A0F1B;
}
@media (max-width: 767px) {
  #cart_title {
    font-size: 24px;
  }
  #cart_title .heading-counter {
    font-size: 14px;
  }
}

.page-heading.step-num {
  background: #3A0F1B;
  color: #FFFCF7;
  padding: 20px 30px;
  border-radius: 12px;
  margin: 30px 0 20px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(58, 15, 27, 0.2);
  position: relative;
  overflow: hidden;
}
.page-heading.step-num::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  pointer-events: none;
}
.page-heading.step-num span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #FFFCF7;
  color: #3A0F1B;
  border-radius: 50%;
  margin-right: 15px;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
@media (max-width: 767px) {
  .page-heading.step-num {
    padding: 15px 20px;
    font-size: 18px;
  }
  .page-heading.step-num span {
    width: 35px;
    height: 35px;
    font-size: 18px;
    margin-right: 10px;
  }
}

.opc-main-block {
  background: #FFFCF7;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: all 0.3s ease;
}
.opc-main-block:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
@media (max-width: 767px) {
  .opc-main-block {
    padding: 20px 15px;
    margin-bottom: 20px;
  }
}

.opc-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  z-index: 10;
  border-radius: 12px;
  backdrop-filter: blur(2px);
  cursor: not-allowed;
}
.opc-overlay::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid #E4D9C8;
  border-top-color: #3A0F1B;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
#order-detail-content {
  margin-bottom: 30px;
}
#order-detail-content #cart_summary {
  width: 100%;
  background: #FFFCF7;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
#order-detail-content #cart_summary thead {
  background: #3A0F1B;
}
#order-detail-content #cart_summary thead tr th {
  padding: 15px;
  color: #FFFCF7;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}
#order-detail-content #cart_summary thead tr th:first-child {
  border-radius: 12px 0 0 0;
}
#order-detail-content #cart_summary thead tr th:last-child {
  border-radius: 0 12px 0 0;
}
#order-detail-content #cart_summary tbody tr {
  border-bottom: 1px solid #E4D9C8;
  transition: background 0.2s ease;
}
#order-detail-content #cart_summary tbody tr:hover {
  background: #F7F1E6;
}
#order-detail-content #cart_summary tbody tr td {
  padding: 20px 15px;
  vertical-align: middle;
}
#order-detail-content #cart_summary tbody tr td.cart_product img {
  max-width: 80px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
#order-detail-content #cart_summary tbody tr td.cart_description .product-name {
  font-weight: 600;
  color: #3B2A24;
  font-size: 16px;
  margin-bottom: 5px;
}
#order-detail-content #cart_summary tbody tr td.cart_description small {
  color: #6B5B50;
  font-size: 13px;
}
#order-detail-content #cart_summary tbody tr td.cart_unit, #order-detail-content #cart_summary tbody tr td.cart_total {
  font-weight: 600;
  color: #3B2A24;
  font-size: 16px;
}
#order-detail-content #cart_summary tbody tr td.cart_quantity .cart_quantity_input {
  width: 60px;
  text-align: center;
  padding: 8px;
  border: 2px solid #E4D9C8;
  border-radius: 8px;
  font-weight: 600;
  transition: border-color 0.2s ease;
}
#order-detail-content #cart_summary tbody tr td.cart_quantity .cart_quantity_input:focus {
  outline: none;
  border-color: #3A0F1B;
}
#order-detail-content #cart_summary tbody tr td.cart_delete a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #B42318;
  color: #FFFCF7;
  border-radius: 8px;
  transition: all 0.2s ease;
}
#order-detail-content #cart_summary tbody tr td.cart_delete a:hover {
  background: #8A1C12;
  transform: scale(1.05);
}
#order-detail-content #cart_summary tfoot tr.cart_total_price td {
  padding: 20px 15px;
  font-size: 20px;
  font-weight: 700;
  color: #3B2A24;
  background: #F7F1E6;
}
#order-detail-content #cart_summary tfoot tr.cart_total_price td .price {
  color: #3A0F1B;
}
#order-detail-content #cart_summary tfoot tr td {
  padding: 15px;
  border-top: 2px solid #E4D9C8;
}

.addresses .address_delivery,
.addresses #address_invoice_form {
  margin-bottom: 20px;
}
.addresses .address_delivery label,
.addresses #address_invoice_form label {
  display: block;
  font-weight: 600;
  color: #3B2A24;
  margin-bottom: 10px;
  font-size: 14px;
}
.addresses .address_delivery select.address_select,
.addresses #address_invoice_form select.address_select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #E4D9C8;
  border-radius: 8px;
  font-size: 15px;
  color: #3B2A24;
  background: #FFFCF7;
  transition: all 0.2s ease;
  cursor: pointer;
}
.addresses .address_delivery select.address_select:focus,
.addresses #address_invoice_form select.address_select:focus {
  outline: none;
  border-color: #3A0F1B;
  box-shadow: 0 0 0 3px rgba(58, 15, 27, 0.1);
}
.addresses .checkbox {
  margin: 20px 0;
}
.addresses .checkbox label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 400;
  color: #3B2A24;
}
.addresses .checkbox label input[type=checkbox] {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  cursor: pointer;
  accent-color: #3A0F1B;
}
.addresses .address {
  background: #F7F1E6;
  border: 2px solid #E4D9C8;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.addresses .address li {
  list-style: none;
  padding: 5px 0;
  color: #3B2A24;
}
.addresses .address li:first-child {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 10px;
  color: #3A0F1B;
}
.addresses .address_add {
  text-align: center;
  margin-top: 20px;
}

.delivery_options .delivery_option {
  background: #FFFCF7;
  border: 2px solid #E4D9C8;
  border-radius: 12px;
  margin-bottom: 15px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.delivery_options .delivery_option:hover {
  border-color: #3A0F1B;
  box-shadow: 0 4px 15px rgba(58, 15, 27, 0.15);
}
.delivery_options .delivery_option.active {
  border-color: #3A0F1B;
  background: rgba(58, 15, 27, 0.03);
  box-shadow: 0 4px 15px rgba(58, 15, 27, 0.15);
}
.delivery_options .delivery_option.active td {
  background: transparent !important;
}
.delivery_options .delivery_option table {
  width: 100%;
  border: none;
}
.delivery_options .delivery_option table td {
  border: none;
  padding: 5px 10px;
}
.delivery_options .delivery_option table td.delivery_option_radio {
  width: 40px;
}
.delivery_options .delivery_option table td.delivery_option_radio input[type=radio] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #3A0F1B;
}
.delivery_options .delivery_option table td.delivery_option_logo {
  width: 100px;
  text-align: center;
}
.delivery_options .delivery_option table td.delivery_option_logo img {
  max-width: 80px;
  max-height: 50px;
}
.delivery_options .delivery_option table td.delivery_option_price {
  text-align: right;
  font-weight: 700;
  font-size: 18px;
  color: #3A0F1B;
}
.delivery_options .delivery_option strong {
  color: #3B2A24;
  font-size: 16px;
}

#opc_payment_methods .payment_module {
  background: #FFFCF7;
  border: 2px solid #E4D9C8;
  border-radius: 12px;
  margin-bottom: 15px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
}
#opc_payment_methods .payment_module:hover {
  border-color: #5A2030;
  box-shadow: 0 4px 15px rgba(58, 15, 27, 0.08);
  transform: translateY(-2px);
}
#opc_payment_methods .payment_module img {
  max-height: 40px;
  margin-right: 15px;
  vertical-align: middle;
}
#opc_payment_methods .payment_module .payment_name {
  font-size: 16px;
  font-weight: 600;
  color: #3B2A24;
  vertical-align: middle;
}
#opc_payment_methods p.warning {
  background: rgba(180, 35, 24, 0.08);
  color: #B42318;
  padding: 15px 20px;
  border-radius: 8px;
  border-left: 4px solid #B42318;
  font-weight: 600;
}

.btn,
button[type=submit] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  background: #3A0F1B;
  color: #FFFCF7;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(58, 15, 27, 0.3);
}
.btn i,
button[type=submit] i {
  margin-left: 8px;
}
.btn:hover,
button[type=submit]:hover {
  background: #5A2030;
  box-shadow: 0 6px 20px rgba(58, 15, 27, 0.4);
  transform: translateY(-2px);
  color: #FFFCF7;
}
.btn:active,
button[type=submit]:active {
  transform: translateY(0);
}
.btn.btn-default,
button[type=submit].btn-default {
  background: #FFFCF7;
  color: #3B2A24;
  border: 2px solid #E4D9C8;
  box-shadow: none;
}
.btn.btn-default:hover,
button[type=submit].btn-default:hover {
  background: #F7F1E6;
  border-color: #6B5B50;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cart_navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0;
  padding: 20px 0;
  border-top: 2px solid #E4D9C8;
}
@media (max-width: 767px) {
  .cart_navigation {
    flex-direction: column;
    gap: 15px;
  }
  .cart_navigation .btn {
    width: 100%;
  }
}

#confirmOrderContainer {
  text-align: center;
  padding: 30px;
  background: rgba(47, 133, 90, 0.04);
  border-radius: 12px;
  border: 2px solid #2F855A;
  margin: 30px 0;
}
#confirmOrderContainer .btn {
  background: #2F855A;
  font-size: 18px;
  padding: 18px 40px;
  box-shadow: 0 4px 15px rgba(47, 133, 90, 0.3);
}
#confirmOrderContainer .btn:hover {
  background: #276749;
  box-shadow: 0 6px 20px rgba(47, 133, 90, 0.4);
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  color: #3B2A24;
  margin-bottom: 8px;
  font-size: 14px;
}
.form-group input[type=text],
.form-group input[type=email],
.form-group input[type=password],
.form-group input[type=tel],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #E4D9C8;
  border-radius: 8px;
  font-size: 15px;
  color: #3B2A24;
  background: #FFFCF7;
  transition: all 0.2s ease;
}
.form-group input[type=text]:focus,
.form-group input[type=email]:focus,
.form-group input[type=password]:focus,
.form-group input[type=tel]:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #3A0F1B;
  box-shadow: 0 0 0 3px rgba(58, 15, 27, 0.1);
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.alert {
  border-left: 4px solid;
}
.alert.alert-warning {
  background: rgba(241, 196, 15, 0.1);
  border-color: #F1C40F;
  color: #856404;
}
.alert.alert-error {
  background: rgba(231, 76, 60, 0.1);
  border-color: #B42318;
  color: #721c24;
}

#cart_voucher {
  padding: 20px !important;
  background: #F7F1E6;
  border-radius: 8px;
}
#cart_voucher h4 {
  font-size: 16px;
  font-weight: 600;
  color: #3B2A24;
  margin-bottom: 15px;
}
#cart_voucher #voucher input[type=text] {
  padding: 10px 15px;
  border: 2px solid #E4D9C8;
  border-radius: 8px;
  margin-right: 10px;
}
#cart_voucher #voucher button {
  padding: 10px 20px;
}

#ordermsg,
#message {
  margin: 20px 0;
}
#ordermsg textarea,
#message textarea {
  width: 100%;
  min-height: 100px;
}

@media (max-width: 767px) {
  #order-opc .opc-main-block {
    padding: 15px;
  }
  #order-opc #cart_summary {
    font-size: 14px;
  }
  #order-opc #cart_summary .cart_product img {
    max-width: 60px !important;
  }
  #order-opc #cart_summary .cart_description .product-name {
    font-size: 14px !important;
  }
  #order-opc .delivery_option table td.delivery_option_logo {
    display: none;
  }
}
.waitimage {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: 10px;
}
.waitimage::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  border: 2px solid #E4D9C8;
  border-top-color: #3A0F1B;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

#continue_shopping_btn {
  font-size: 14px;
  padding: 10px 20px;
}
@media (max-width: 767px) {
  #continue_shopping_btn {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }
}

#boxmanagercarrier_block,
#achat_groupe {
  border: 2px solid #E4D9C8;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  background: #F7F1E6;
}
#boxmanagercarrier_block p:first-child,
#achat_groupe p:first-child {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #3B2A24;
}
#boxmanagercarrier_block span,
#achat_groupe span {
  font-weight: 700;
  color: #3A0F1B;
}

#achat_groupe {
  text-align: center;
}

#boxmanagercarrier_item.disabled {
  opacity: 0.5;
  pointer-events: none;
}

#edn-relay {
  padding: 20px;
  background: #F7F1E6;
  border-radius: 12px;
  margin: 20px 0;
}
#edn-relay h3 {
  margin: 0 0 15px 0;
  font-size: 18px;
  font-weight: 600;
  color: #3B2A24;
}
#edn-relay p.text label {
  display: inline-block;
  padding: 6px 15px;
  width: 120px;
  font-weight: 600;
}
#edn-relay p.text input {
  padding: 8px 12px;
  height: auto;
  width: 200px;
  border: 2px solid #E4D9C8;
  border-radius: 8px;
  font-size: 14px;
  color: #3B2A24;
}

#page-selected-relay-info,
#selected-relay-info {
  margin: 15px 0;
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #3B2A24;
}

#HOOK_TOP_PAYMENT {
  padding: 20px;
  border: 2px solid #E4D9C8;
  border-radius: 12px;
  margin-bottom: 20px;
  background: #F7F1E6;
}

.cart_title {
  display: none;
}
@media (max-width: 767px) {
  .cart_title {
    display: block;
    font-size: 13px;
    color: #6B5B50;
    margin-bottom: 4px;
  }
}

ul.price {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart_last_product {
  display: none;
}

#HOOK_TOP_PAYMENT:empty {
  display: none;
}

#cart_summary td.cart_quantity {
  white-space: nowrap;
}
#cart_summary td.cart_quantity .cart_quantity_button {
  display: inline-block;
  vertical-align: middle;
}
#cart_summary td.cart_quantity .cart_quantity_down,
#cart_summary td.cart_quantity .cart_quantity_up {
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 18px;
  box-shadow: none;
  transform: none;
}
#cart_summary td.cart_quantity .cart_quantity_down i,
#cart_summary td.cart_quantity .cart_quantity_up i {
  margin: 0;
}
#cart_summary td.cart_quantity .cart_quantity_down.disabled,
#cart_summary td.cart_quantity .cart_quantity_up.disabled {
  opacity: 0.4;
  pointer-events: none;
}
#cart_summary td.cart_quantity .cart_quantity_input {
  display: inline-block;
  vertical-align: middle;
  width: 52px;
  margin: 0 6px;
  padding: 6px;
}

#cart_voucher fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

@media (max-width: 767px) {
  #cart_summary {
    display: flex;
    flex-direction: column;
  }
  #cart_summary thead {
    display: none;
  }
  #cart_summary tbody,
  #cart_summary tfoot {
    display: block;
  }
  #cart_summary tbody {
    order: 1;
  }
  #cart_summary tfoot {
    order: 2;
  }
  #cart_summary tbody tr.cart_item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 8px 12px;
    align-items: center;
    padding: 16px 12px;
  }
  #cart_summary tbody tr.cart_item > td {
    display: block;
    padding: 0;
    border: 0;
    width: auto;
    text-align: left;
  }
  #cart_summary tbody tr.cart_item > td.cart_product {
    grid-column: 1;
    grid-row: 1/span 3;
    align-self: start;
  }
  #cart_summary tbody tr.cart_item > td.cart_description {
    grid-column: 2/4;
  }
  #cart_summary tbody tr.cart_item > td.cart_unit,
  #cart_summary tbody tr.cart_item > td.cart_quantity {
    grid-column: 2;
  }
  #cart_summary tbody tr.cart_item > td.cart_delete {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
  }
  #cart_summary tbody tr.cart_item > td.cart_total {
    grid-column: 3;
    grid-row: 3;
    text-align: right;
    white-space: nowrap;
  }
  #cart_summary tfoot tr {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: #F7F1E6;
  }
  #cart_summary tfoot tr > td {
    display: block;
    border: 0;
    background: none;
  }
  #cart_summary tfoot tr > td.cart_voucher {
    flex: 0 0 100%;
  }
  #cart_summary tr.unvisible {
    display: none;
  }
  #cart_summary tfoot tr[style*=table-row] {
    display: flex !important;
  }
  #order-detail-content #cart_summary tfoot tr {
    border-top: 2px solid #E4D9C8;
  }
  #order-detail-content #cart_summary tfoot tr > td {
    border-top: 0;
  }
}
