#Notarisation {
  width: 100%;
  height: 100%;
  background: #FAFAF9;
}

#Notarisation .notarisation-content {
  max-width: 1450px;
  height: 100%;
  margin: 0 auto;
  padding: 32px 80px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 64px;
}

#Notarisation .notary-public {
  height: 100%;
  background: #fff;
  padding: 32px;
  box-shadow: 7px 14px 34px 0px #8A5C5C1A;
}

.notary-public a {
  color: #D83F1B;
}

#Notarisation .notary-order__top {
  padding: 32px;
  background: #fff;
  box-shadow: 7px 14px 34px 0px #8A5C5C1A;
}

#Notarisation .notary-public__img {
  height: 200px;
  background: url('../assets/notary.png');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 20px;
  margin: 32px 0;
}

#Notarisation .notary-public__text {
  margin-bottom: 32px;
}

#Notarisation .notary-public__btn {
  width: 100%;
  height: 46px;
  padding: 12px 0px;
  background: #FAFAF9;
  color: #D83F1B;
  display: none;
  font-family: Avenir;
  font-size: 16px;
  font-weight: 800;
  line-height: 21.86px;
}

#Notarisation .notary-public__text h1 {
  font-family: Libre Baskerville;
  font-size: 32px;
  font-weight: 700;
  line-height: 39.68px;
  margin: 31px 0 15px 0;
}

#Notarisation .notary-public__text h2 {
  font-family: Libre Baskerville;
  font-size: 20px;
  font-weight: 700;
  line-height: 31px;
  margin: 31px 0 15px 0;
}

#Notarisation .notary-public__text p {
  font-family: Avenir;
  margin: 10px 0;
  font-size: 16px;
  line-height: 22.4px;
}

#Notarisation .notary-public__text .notary-public__desc {
  font-family: Avenir;
  font-size: 16px;
  line-height: 22.4px;
  text-align: left;
}

#Notarisation .notary-public__text .notary-public__tips {
  font-family: Avenir;
  line-height: 22.4px;
  padding: 16px 24px;
  background: #FBECE8;
}

#Notarisation .notary-public__text .bg-gray {
  background: #FAFAF9;
}

#Notarisation .notary-public__text .font-italic {
  font-style: italic;
}


#Notarisation .notary-public__text .notary-public__title {
  font-family: Libre Baskerville;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

#Notarisation .notary-public__text li {
  text-indent: -6px;
  padding-left: 12px;
  color: #544642;
}

#Notarisation .notary-public__text li::before {
  content: '\2022';
  display: inline-block;
  width: 12px;
  font-size: 20px;
  font-family: Avenir;
}

.notary-order__online .order-online__btn {
  justify-content: flex-end;
}

.notary-order__online h1 {
  font-family: Libre Baskerville;
  font-size: 32px;
  font-weight: 700;
  line-height: 39.68px;
}

.notary-order__online .order-online__btn .order-btn {
  background: #FDF3F0;
  color: #ED866E;
  font-family: Avenir;
  font-size: 15px;
  font-weight: 900;
  line-height: 24px;
  letter-spacing: 0.06em;
  padding: 4px 16px;
}

.input-error {
  border: 1px solid red !important;
}

.input-no-error {
  border: none !important;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake-animation {
  animation: shake 0.8s cubic-bezier(.36,.07,.19,.97) both;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
  border: 2px solid #D83F1B !important;
  box-shadow: 0 0 8px rgba(216, 63, 27, 0.5);
}

.disabled-checkbox {
  opacity: 0.6;
  cursor: not-allowed;
}
.disabled-checkbox * {
  pointer-events: none;
}

.order-online__content .order-online__title {
  font-family: Libre Baskerville;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
}

.order-online__content .order-online__desc {
  font-family: Avenir;
  font-size: 15px;
  font-weight: 500;
  line-height: 21px;
}

.order-online__form {
  width: 100%;
  /* height: 64px; */
  padding: 20px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  box-shadow: inset 0 0 0 1px rgba(27, 8, 3, 0.05);
  cursor: pointer;
  margin-bottom: 16px;
  position: relative;
}

.highlighted {
  color: red;
  font-weight: bold;
}

.order-online__form .form-tips .icon-tips {
  color: #9CB6F2;
}

.order-online__form:hover {
  box-shadow: inset 0 0 0 3px #9CB6F2;
}

.order-online__form:hover .form-tips .icon-tips {
  color: #E3E1E0;
}

.order-online__is-selected {
  padding: 12px 14px;
  border: 3px solid rgba(0, 0, 0, 1);
}

.order-online__form label {
  font-family: Avenir;
  font-size: 18px;
  font-weight: 800;
  line-height: 24px;
  text-align: left;
}

.order-online__form select {
  background: #FAFAF9;
  padding: 4px 8px;
  width: 60px;
}
.order-online__form .form-left {
  width: 82%;
}

.order-online__form .form-radio,
.order-online__form .form-checkbox {
  margin: 0 20px 0 0;
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #D83F1B;
  position: relative;
  appearance: none;
}

input[type="radio"]:checked,
input[type="checkbox"]:checked {
  appearance: none;
  /* 用于覆盖默认的外观 */
  -webkit-appearance: none;
  /* Safari and Chrome */
  -moz-appearance: none;
  /* Firefox */
}

.order-online__form .form-checkbox {
  border-radius: 4px;
}

input[type="checkbox"]:checked {
  background: #D83F1B;
}

input[type="checkbox"]:checked:before {
  content: "";
  position: absolute;
  top: 0px;
  left: 3px;
  width: 3px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

input[type='radio']:checked:before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  background-color: #D83F1B;
  /* 修改选中状态的颜色 */
  border-radius: 50%;
  /* 使其呈圆形 */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.order-online__form .form-right {
  font-family: Avenir;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}

.order-online__form .form-right__select {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
}

.notary-order__online{
  min-width: 580px;
}


.order-online__form .form-tips {
  position: relative;
}

.order-online__form .tips-text::before {
  content: '';
  display: inline-block;
  position: absolute;
  left: calc(100% - 6px);
  bottom: 30%;
  /* transform: translateX(-50%); */
  transform: rotate(90deg);
  width: 0;
  height: 0;
  border-top: 13px solid rgba(27, 8, 3, 1);
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  -webkit-transition: all .15s;
  -o-transition: all .15s;
  transition: all .15s;
  opacity: 0;
  pointer-events: none;
}

.order-online__form .tips-text::after {
  content: attr(data-tips);
  display: inline-block;
  position: absolute;
  left: calc(100%);
  bottom: -100%;
  transform: translateX(-50%);
  width: 200px;
  height: auto;
  min-height: 45px;
  word-wrap: break-word;
  background-color: rgba(27, 8, 3, 1);
  color: #fff;
  padding: 8px;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
  transition: all .15s;
  opacity: 0;
  pointer-events: none;
}

.order-online__form .tips-text:hover:before {
  opacity: 1;
  left: calc(100% + 16px);
}

.order-online__form .tips-text:hover:after {
  left: calc(100% + 140px);
  opacity: 1;
}

.notary-order__online .order-online__tips {
  width: 100%;
  padding: 24px;
  font-family: Avenir;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  color: rgba(27, 8, 3, 1);
  background: #EBF1FD;
}

.notary-order__online .notary-order__bottom {
  background: #fff;
  padding: 32px;
  box-shadow: 7px 14px 34px 0px #8A5C5C1A;
}

#Notarisation .order-online__img {
  background: url('../assets/map.png');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  margin-bottom: 16px;
}

#Notarisation .notary-public__address-title {
  font-family: Avenir;
  font-size: 18px;
  font-weight: 900;
  line-height: 24px;
}

#Notarisation .notary-public__address-desc {
  font-family: Avenir;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}

#Notarisation .show-directions {
  font-family: Avenir;
  font-size: 18px;
  font-weight: 800;
  line-height: 24px;
}

.notary-public__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 8px;
  height: 90px;
  transition: all .3s ease;
}

.notary-public__text .is-show-more__desc {
  height: 400px;
}

.notary-public__list .list-table {
  display: flex;
  flex-direction: column;
}

.notary-public__list .list-table a {
  padding: 3px 0;
}

#ShowMoreDesc {
  transition: all .3s ease;
}

#ConventionTips {
  background: #FAFAF9;
  padding: 24px;
  margin-top: 24px;
}

#SeleceCountryModal {
  width: 100%;
}

/* 国家下拉统一样式（与联系页一致） */
#SeleceCountryModal .select-country__content {
  position: relative;
  border-radius: 2px;
  height: 64px;
}

#SeleceCountryModal .select-country__title {
  background: #FAFAF9;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#SeleceCountryModal .select-country__drop-list {
  position: absolute;
  left: 0;
  top: 64px;
  background: #1B0803;
  color: #fff;
  width: 100%;
  height: 300px;
  overflow-y: scroll;
  border-radius: 4px;
  padding: 20px 0;
  visibility: hidden;
  opacity: 0;
  transition: all 0.2s linear;
  z-index: 99;
}

#SeleceCountryModal .select-country__drop-list .country__drop-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  cursor: pointer;
}

#SeleceCountryModal .select-country__drop-list .country__drop-item:hover {
  background: #32211c;
}

#SelectCountryValue {
  border: none;
  width: 100%;
  font-weight: bold;
  color: #D83F1B;
}

#SeleceCountryModal .select-country__drop-list .country__drop-item span.flag {
  width: 24px;
  height: 24px;
  overflow: hidden;
  display: inline-block;
  padding: 0;
  border-radius: 12px;
}

/* Delivery Country Modal 样式 (与 SeleceCountryModal 保持一致) */
#DeliveryCountryModal {
  width: 100%;
}

#DeliveryCountryModal .select-country__content {
  position: relative;
  border-radius: 2px;
  height: 64px;
}

#DeliveryCountryModal .select-country__title {
  background: #FAFAF9;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#DeliveryCountryModal .select-country__drop-list {
  position: absolute;
  left: 0;
  top: 64px;
  background: #1B0803;
  color: #fff;
  width: 100%;
  height: 300px;
  overflow-y: scroll;
  border-radius: 4px;
  padding: 20px 0;
  visibility: hidden;
  opacity: 0;
  transition: all 0.2s linear;
  z-index: 99;
}

#DeliveryCountryModal .select-country__drop-list .country__drop-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  cursor: pointer;
}

#DeliveryCountryModal .select-country__drop-list .country__drop-item:hover {
  background: #32211c;
}

#DeliveryCountryValue {
  border: none;
  width: 100%;
  font-weight: bold;
  color: #D83F1B;
}

#DeliveryCountryModal .select-country__drop-list .country__drop-item span.flag {
  width: 24px;
  height: 24px;
  overflow: hidden;
  display: inline-block;
  padding: 0;
  border-radius: 12px;
}

select {
  border: none;
  border-radius: 4px;
}
.ordder-checkout__select select {
  width: 60px;
}

.order-items .disable select, .order-items label.disable {
  pointer-events: none; /* 禁止交互 */
  opacity: 0.8; /* 更改外观，类似禁用效果 */
}

.order-items .disable input {
  pointer-events: none; /* 禁止交互 */
  opacity: 0.5; /* 更改外观，类似禁用效果 */
}



@media only screen and (min-width : 744px) and (max-width : 1024px) {
  #Notarisation {
    width: 100vw;
  }

  #Notarisation .notary-public__btn {
    display: block;
  }

  .show-more__desc {
    height: 0;
    overflow: hidden;
  }

  .is-show-more__desc {
    height: 100%;
    margin-top: 32px;
  }

  #Notarisation .notary-order__top {
    padding: 24px;
  }

  #Notarisation .notarisation-content {
    max-width: 100vw;
    grid-template-columns: none;
    grid-template-rows: repeat(1, 1fr);
    grid-gap: 24px;
    display: flex;
    flex-direction: column-reverse;
  }

  #Notarisation .notary-public {
    max-width: 100vw;
  }

  .order-online__form {
    /* min-height: 64px; */
    flex-wrap: wrap;
  }

  .order-online__form .form-left__checkbox,
  .order-online__form .form-right__select {
    width: 100%;
  }

  .order-online__form .form-select__box {
    margin-left: 34px;
  }

  .order-online__form .form-left__checkbox {
    margin-bottom: 16px;
  }

  .notary-order__online .order-online__tips {
    width: 100%;
  }

  #Notarisation .notary-order__top {
    margin-bottom: 24px;
  }
}


@media screen and (max-width: 479px) {
  #Notarisation .notary-public__btn {
    display: block;
  }

  #Notarisation {
    width: 100vw;
  }

  .show-more__desc {
    height: 0;
    overflow: hidden;
  }

  .is-show-more__desc {
    height: 100%;
    margin-top: 32px;
  }

  #Notarisation .notary-order__top {
    margin-bottom: 24px;
  }

  #Notarisation .notarisation-content {
    padding: 16px;
    display: flex;
    flex-direction: column-reverse;
    grid-gap: 24px;
  }

  #Notarisation .notary-public__text h1 {
    font-family: Libre Baskerville;
    font-size: 24px;
    font-weight: 700;
    line-height: 29.76px;
  }

  #Notarisation .notary-public,
  #Notarisation .notary-order__top,
  #Notarisation .notary-order__bottom {
    padding: 16px;
  }

  .notary-order__online{
    min-width: 0px;
  }

  .order-online__form {
    /* min-height: 64px; */
    
    flex-wrap: wrap;
  }

  .order-online__form .form-left__checkbox,
  .order-online__form .form-right__select {
    width: 100%;
  }

  .order-online__form .form-select__box {
    margin-left: 34px;
  }

  .order-online__form .form-left__checkbox {
    margin-bottom: 16px;
  }

  .order-online__form .form-checkbox__box label {
    max-width: 180px;
  }

  .order-online__form label {
    max-width: 140px;
  }

  .notary-order__online .order-online__tips {
    width: 100%;
  }

  .order-online__form .tips-text::before {
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%) rotate(0deg);
    border-top: 13px solid rgba(27, 8, 3, 1);
    border-bottom: 0;
  }
  
  .order-online__form .tips-text::after {
    left: 50%;
    bottom: calc(100% + 13px);
    transform: translateX(-50%);
  }
  
  .order-online__form .tips-text:hover:before {
    left: 50%;
    opacity: 1;
  }
  
  .order-online__form .tips-text:hover:after {
    left: 50%;
    opacity: 1;
  }
}

/* 手机横屏适配 */
@media screen and (max-height: 480px) and (orientation: landscape) {
  #Notarisation .notary-public__btn {
    display: block;
  }

  #Notarisation {
    width: 100vw;
  }

  .show-more__desc {
    height: 0;
    overflow: hidden;
  }

  .is-show-more__desc {
    height: 100%;
    margin-top: 32px;
  }

  #Notarisation .notary-order__top {
    margin-bottom: 24px;
  }

  #Notarisation .notarisation-content {
    padding: 16px;
    display: flex;
    flex-direction: column-reverse;
    grid-gap: 24px;
  }

  #Notarisation .notary-public__text h1 {
    font-family: Libre Baskerville;
    font-size: 24px;
    font-weight: 700;
    line-height: 29.76px;
  }

  #Notarisation .notary-public,
  #Notarisation .notary-order__top,
  #Notarisation .notary-order__bottom {
    padding: 16px;
  }

  .notary-order__online{
    min-width: 0px;
  }

  .order-online__form {
    flex-wrap: wrap;
  }

  .order-online__form .form-left__checkbox,
  .order-online__form .form-right__select {
    width: 100%;
  }

  .order-online__form .form-select__box {
    margin-left: 34px;
  }

  .order-online__form .form-left__checkbox {
    margin-bottom: 16px;
  }

  .order-online__form .form-checkbox__box label {
    max-width: 180px;
  }

  .order-online__form label {
    max-width: 140px;
  }

  .notary-order__online .order-online__tips {
    width: 100%;
  }

  .order-online__form .tips-text::before {
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%) rotate(0deg);
    border-top: 13px solid rgba(27, 8, 3, 1);
    border-bottom: 0;
  }
  
  .order-online__form .tips-text::after {
    left: 50%;
    bottom: calc(100% + 13px);
    transform: translateX(-50%);
  }
  
  .order-online__form .tips-text:hover:before {
    left: 50%;
    opacity: 1;
  }
  
  .order-online__form .tips-text:hover:after {
    left: 50%;
    opacity: 1;
  }
}

/* Account Page Styles */
/* 重置LegalisationAbout的最大宽度限制，让account页面占满整个屏幕宽度 */
.account-page #LegalisationAbout {
  max-width: 100% !important;
  width: 100% !important;
  padding: 32px;
}

.account-page .legalisering-modal {
  width: 100%;
  overflow-x: hidden;
}

.account-page {
  width: 100%;
  min-width: 320px;
}

.account-orders-container {
  margin-top: 32px;
  background: #fff;
  padding: 32px;
  box-shadow: 7px 14px 34px 0px #8A5C5C1A;
  border-radius: 20px;
}

.account-orders-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.account-orders-table th {
  background: #FAFAF9;
  color: #D83F1B;
  font-family: Avenir;
  font-size: 16px;
  font-weight: 800;
  padding: 16px;
  text-align: left;
  border-bottom: 2px solid #D83F1B;
}

.account-orders-table td {
  font-family: Avenir;
  font-size: 15px;
  font-weight: 500;
  padding: 16px;
  border-bottom: 1px solid #EBF1FD;
  color: #544642;
}

.account-orders-table tr:hover {
  background: #FDF3F0;
}

.account-orders-table tr:last-child td {
  border-bottom: none;
}

.account-orders-table a {
  color: #D83F1B;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.account-orders-table a:hover {
  color: #ED866E;
  text-decoration: underline;
}

/* Mobile Orders Table */
.mobile-orders .account-orders-table {
  display: block;
}

.mobile-orders .account-orders-table thead {
  display: none;
}

.mobile-orders .account-orders-table tbody,
.mobile-orders .account-orders-table tr,
.mobile-orders .account-orders-table td {
  display: block;
  width: 100%;
}

.mobile-orders .account-orders-table tr {
  margin-bottom: 20px;
  border: 1px solid #EBF1FD;
  border-radius: 10px;
  padding: 16px;
  background: #fff;
}

.mobile-orders .account-orders-table td {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #EBF1FD;
  text-align: right;
}

.mobile-orders .account-orders-table td:last-child {
  border-bottom: none;
}

.mobile-orders .account-orders-table td::before {
  content: attr(data-label);
  font-weight: 700;
  color: #D83F1B;
  margin-right: 16px;
  text-align: left;
  flex: 0 0 auto;
}

.mobile-orders .account-orders-container {
  padding: 16px;
}

/* Pagination Styles */
.account-orders-container .pagination {
  margin-top: 32px;
  text-align: center;
}

.account-orders-container .pagination a,
.account-orders-container .pagination span {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 4px;
  background: #FAFAF9;
  color: #D83F1B;
  font-family: Avenir;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.account-orders-container .pagination a:hover,
.account-orders-container .pagination .current {
  background: #D83F1B;
  color: #fff;
}

.account-orders-container .pagination .dots {
  background: transparent;
  color: #544642;
}

/* Empty State */
.account-orders-container p {
  font-family: Avenir;
  font-size: 16px;
  color: #544642;
  text-align: center;
  padding: 32px;
}

@media only screen and (min-width: 744px) and (max-width: 1024px) {
  .account-orders-container {
    padding: 24px;
  }
}

@media screen and (max-width: 479px) {
  .account-orders-container {
    padding: 16px;
    margin-top: 24px;
  }
  
  .account-orders-table th {
    font-size: 14px;
    padding: 12px;
  }
  
  .account-orders-table td {
    font-size: 13px;
    padding: 12px;
  }
}

/* 手机横屏适配 */
@media screen and (max-height: 480px) and (orientation: landscape) {
  .account-orders-container {
    padding: 16px;
    margin-top: 24px;
  }
  
  .account-orders-table th {
    font-size: 14px;
    padding: 12px;
  }
  
  .account-orders-table td {
    font-size: 13px;
    padding: 12px;
  }
}