.woocommerce-MyAccount-content {
  padding-top: 0 !important;
}

.fajrfair-user-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  box-shadow: 2px 2px 10px #0000000D;
  background-color: #ffffff;
  border-radius: 12px;
}

.fajrfair-user-avatar img {
  display: block;
  max-width: unset;
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.fajrfair-user-meta {
  flex: 1 1 auto;
}

.fajrfair-user-name {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #1F1E22;
}

.book-user-star {
  display: flex;
  gap: 3px;
}

.fajrfair-user-meta-row {
  display: flex;
  gap: 24px;
  margin-top: 8px;
  font-size: 14px;
  color: #374151;
  align-items: center;
  flex-wrap: wrap;
}

.fajrfair-user-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1F1E22;
  font-style: "Noto Sans Bengali UI", sans-serif;
}

.myaccount-about-user {
  margin-top: 40px;
}

.myaccount-about-user h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 100%;
}

.myaccount-about-user p {
  margin: 0;
  font-style: "Noto Sans Bengali UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #1F1E22;
  line-height: 24px;
}


.fajrfair-review-header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.fajrfair-review-header-section h2 {
  font-weight: 700;
  font-size: 32px;
  line-height: 100%;
  margin-bottom: 0;
}

.fajrfair-review-header-section .add-new-review-button {
  font-size: 14px;
  font-weight: 500;
  background-color: #2A007C;
  color: #fff;
  width: 169px;
  height: 42px;
  border-radius: 12px;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
}

.fajrfair-review-header-section .add-new-review-button:hover {
  background-color: #2A007C;
  color: #fff;
  width: 169px;
  height: 42px;
  border-radius: 12px;
}

.fajrfair-reviews-section {
  padding: 10px;
  margin-top: 32px;
}

.fajrfair-reviews-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.fajrfair-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.woocommerce-my-account-wrapper .fajrfair-review-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 610px !important;
}

.fajrfair-review-image {
  position: relative;
}

.fajrfair-review-image img {
  width: 100%;
  height: 212px;
  object-fit: cover;
}

.fajrfair-review-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #fff;
  color: #000;
  padding: 4px 10px;
  font-size: 13px;
  border-radius: 6px;
  width: 160px;
  height: 64px;
}

.fajrfair-review-tag .book-list {
  display: flex;
  align-items: center;
  margin-top: 6px;
}

.fajrfair-review-tag .book-list img {
  width: 34px;
  height: 48px;
  margin-right: 6px;
}

.fajrfair-review-content {
  padding: 16px;
}

.fajrfair-review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0px;
  border-bottom: 1px solid #E5E7EB;
}

.fajrfair-review-author-img-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fajrfair-review-author-img-name img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.fajrfair-review-author .author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.fajrfair-review-rating {
  color: #f59e0b;
  font-size: 14px;
  margin-bottom: 8px;
}

.fajrfair-review-title {
  font-size: 16px;
  font-weight: 700;
  padding: 8px 0;
  margin-top: 20px;
  margin-bottom: unset;
}

.fajrfair-review-excerpt .fajrfair-review-excerpt {
  font-family: 'Inter, sans-serif';
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #1F1E22;
  margin-bottom: 12px;
  height: auto;
}

.fajrfair-review-btn {
  display: inline-block;
  background: #F6F2FF;
  color: #2A007C;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
}

.fajrfair-review-btn:hover {
  display: inline-block;
  background: #F6F2FF;
  color: #2A007C;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
}

/* My account order page CSS */

.fajrfair-order-content {
  background: #fff;
}

.fajrfair-orders-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 0px 0px 0px;
}

.fajrfair-order-content h3 {
  padding: 20px;
  padding-left: 0px;
  margin-bottom: 0;
  font-size: 20px;
  font-weight: 700;
}

.fajrfair-order-header {
  display: flex;
  flex-direction: column;
  justify-content: left;
  margin-bottom: 15px;
  padding-left: 8px;
}

.fajrfair-order-header h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.fajrfair-order-header h4 strong {
  font-weight: 700;
  color: #2a007c;
}

.fajrfair-order-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fajrfair-order-badge {
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 400;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
}

.status-pending {
  color: #ff6f00;
}


.status-completed {
  color: #2e7d32;
}

.status-processing {
  color: #ff6f00;
}

.fajrfair-order-track {
  background: #2d0c9b;
  color: #fff;
  padding: 10px 35px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
}

.fajrfair-order-track:hover {
  color: #fff;
}

.fajrfair-order-items {
  display: flex;
  gap: 20px;
}

.fajrfair-order-item {
  text-align: center;
  width: 120px;
}

.fajrfair-order-info .product-name {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  text-align: left;
  height: 25px;
  padding-top: 4px;
}

.fajrfair-order-info .product-price {
  font-size: 18px;
  font-weight: 700;
  margin: 4px 0 0;
}

/* Account Details */
.farjfair-edit-account label {
  font-weight: 700;
  font-size: 12px;
  font-family: 'Inter';
}

.farjfair-edit-account input, .farjfair-edit-account textarea {
  color: #1F1E22 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  border: 1px solid #DADADA !important;
  border-radius: 12px !important;
  -webkit-border-radius: 12px !important;
  -moz-border-radius: 12px !important;
  -ms-border-radius: 12px !important;
  -o-border-radius: 12px !important;
}

.farjfair-edit-account .woocommerce-Button {
  font-size: 14px;
  font-weight: 700;
  background-color: #2A007C;
  border-radius: 12px;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
}

.farjfair-edit-account .woocommerce-form-row--first {
  width: 100% !important;
}

button[name="save_account_details"]:hover {
  color: #fff !important;
  background-color: #2A007C !important;
  box-shadow: unset !important;
}

.fajrfair-account-details-phone-email {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.fajrfair-account-details-phone-email p {
  width: 50%;
}

.fajrfair-account-details-about-me {
  margin-bottom: 20px;
}

.fajrfair-account-details-phone-email input#account_phone {
  text-align: left !important;
  padding: 0 15px !important;
}

.description-char-counter {
  position: absolute;
  top: -20px;
  right: 15px;
  font-size: 12px;
  color: #000;
  font-weight: 400;
}

.fajrfair-account-details-about-me textarea {
  min-height: 124px !important;
}

.fajrfair-review-author-info {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.fajrfair-review-author-info-meta-data strong {
  font-size: 16px;
  font-weight: 700;
  line-height: 100%;
}

.fajrfair-review-author-info-meta-data span {
  font-size: 12px;
  font-weight: 400;
  line-height: 100%;
  color: #6B7280;
}

.fajrfair-review-tag .book-list-content h4 {
  font-size: 16px;
  font-weight: 700;

  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 32ch;

}

.fajrfair-review-tag .book-list-content p {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 30ch;
}

.fajrfair-account-details-heading {
  padding: 22px;
  border-bottom: 1px solid #EDEDED;
  margin-bottom: unset;
  font-weight: 700;
  font-size: 20px;
  line-height: 100%;
}

.fajrfair-account-details-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

form.woocommerce-EditAccountForm.edit-account.farjfair-edit-account {
  padding: 25px 20px;
}

.woocommerce-form-row.account_profile_photo {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.woocommerce-form-row.account_profile_photo label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.woocommerce-Input--file {
  border: 1px solid #ccc;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: border-color 0.3s, background-color 0.3s;
}

.woocommerce-Input--file:hover {
  border-color: #007cba;
  background-color: #f1f1f1;
}

.profile-photo-preview {
  max-width: 120px;
  max-height: 120px;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

.profile-photo-preview img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  max-width: 200px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.fajrfair-profile-picture-upload {
  margin-bottom: 20px;
}

.profile-photo-preview .remove-profile-photo {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 16px;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  z-index: 10;
}

.profile-photo-preview:hover .remove-profile-photo {
  display: block;
}

.fajrfair-profile-picture-upload .description {
  display: block;
  font-size: 0.9em;
  color: #777;
  margin-top: 5px;
  font-style: italic;
}

.no-image-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 96px;
  background-color: #f0f0f0;
  border: 2px dashed #ccc;
  color: #666;
  font-size: 14px;
  text-align: center;
  border-radius: 4px;
  font-weight: 500;
}

.fajrfair-order-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	transition: all 0.2s ease;
}

.fajrfair-order-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 21px 19px;
  background-color: #F8F8F8;
  border-radius: 10px;
}

.fajrfair-order-item {
  width: 100%;
	display: grid;
	grid-template-columns: 4fr 1fr 1fr 1fr 1fr;
	align-items: center;
	gap: 16px;
}

.fajrfair-order-thumb img {
	width: 74px;
	height: 95px;
	object-fit: cover;
	border-radius: 6px;
}

.fajrfair-order-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.fajrfair-order-info .product-name {
	font-size: 15px;
	font-weight: 600;
	color: #111;
	margin: 0;
	line-height: 1.4;
  width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fajrfair-order-price,
.fajrfair-order-qty,
.fajrfair-order-id,
.fajrfair-order-status {
	font-size: 15px;
	font-weight: 700;
	color: #111111;
	text-align: center;
}

.fajrfair-order-status span {
	font-weight: 600;
	text-transform: capitalize;
}

.status-pending { color: #ff7e42; }
.status-processing { color: #0073aa; }
.status-completed { color: #22b573; }
.status-cancelled { color: #e74c3c; }

.fajrfair-order-more {
	font-size: 13px;
	color: #777;
  text-align: left;
}

.fajrfair-order-thumb-and-info {
  display: flex;
  justify-content: left;
  gap: 20px;
  align-items: center;
}

.fajrfair-order-thumb-and-info .product-author {
  text-align: left;
  font: "inter", sans-serif;
  font-size: 14px;
  color: #777;
  font-weight: 500;
  margin-bottom: 0px !important;
  width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fajrfair-order-content.fajrfair-current-order {
  margin-bottom: 55px;
}

.fajrfair-order-date-bn {
  text-align: left;
  font-size: 14px;
  color: #111111;
  font-weight: 500;
  line-height: 100%;
}
.woocommerce-MyAccount-navigation-link--dashboard a::before,
.woocommerce-MyAccount-navigation-link--orders a::before,
.woocommerce-MyAccount-navigation-link--edit-account a::before,
.woocommerce-MyAccount-navigation-link--customer-logout a::before,
.woocommerce-MyAccount-navigation-link--wishlist a::before{
  content: "";
  display: inline-block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-position: center;
}

.woocommerce-MyAccount-navigation-link--orders a::before{
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M2.5 15.4167V4.16666C2.5 2.78595 3.61929 1.66666 5 1.66666H16.6667C17.1269 1.66666 17.5 2.03976 17.5 2.49999V17.5C17.5 17.9602 17.1269 18.3333 16.6667 18.3333H5.41667C3.80583 18.3333 2.5 17.0275 2.5 15.4167ZM15.8333 16.6667V14.1667H5.41667C4.72631 14.1667 4.16667 14.7263 4.16667 15.4167C4.16667 16.107 4.72631 16.6667 5.41667 16.6667H15.8333ZM4.16667 12.7807C4.54552 12.6007 4.96933 12.5 5.41667 12.5H15.8333V3.33332H5C4.53977 3.33332 4.16667 3.70642 4.16667 4.16666V12.7807Z' fill='%231F1E22'/></svg>");
}

.woocommerce-MyAccount-navigation-link--dashboard a::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M10.0003 1.66666C14.6027 1.66666 18.3337 5.39761 18.3337 9.99999C18.3337 14.6023 14.6027 18.3333 10.0003 18.3333C5.39795 18.3333 1.66699 14.6023 1.66699 9.99999C1.66699 5.39761 5.39795 1.66666 10.0003 1.66666ZM10.0003 3.33332C6.31842 3.33332 3.33366 6.31809 3.33366 9.99999C3.33366 13.6819 6.31842 16.6667 10.0003 16.6667C13.6822 16.6667 16.667 13.6819 16.667 9.99999C16.667 6.31809 13.6822 3.33332 10.0003 3.33332ZM13.1944 6.11456C13.3917 5.97606 13.66 5.99937 13.8305 6.16983C14.0005 6.33986 14.0226 6.60795 13.8826 6.80347C12.0662 9.34124 11.0667 10.7014 10.8842 10.8839C10.3961 11.372 9.60457 11.372 9.11641 10.8839C8.62832 10.3957 8.62832 9.60424 9.11641 9.11607C9.42749 8.80507 10.7868 7.80456 13.1944 6.11456ZM14.5837 9.16666C15.0439 9.16666 15.417 9.53974 15.417 9.99999C15.417 10.4602 15.0439 10.8333 14.5837 10.8333C14.1234 10.8333 13.7503 10.4602 13.7503 9.99999C13.7503 9.53974 14.1234 9.16666 14.5837 9.16666ZM5.41699 9.16666C5.87722 9.16666 6.25032 9.53974 6.25032 9.99999C6.25032 10.4602 5.87722 10.8333 5.41699 10.8333C4.95676 10.8333 4.58366 10.4602 4.58366 9.99999C4.58366 9.53974 4.95676 9.16666 5.41699 9.16666ZM7.34867 6.16983C7.67411 6.49526 7.67411 7.02291 7.34867 7.34834C7.02324 7.67377 6.4956 7.67377 6.17017 7.34834C5.84472 7.02291 5.84472 6.49526 6.17017 6.16983C6.4956 5.84439 7.02324 5.84439 7.34867 6.16983ZM10.0003 4.58332C10.4606 4.58332 10.8337 4.95642 10.8337 5.41666C10.8337 5.87689 10.4606 6.24999 10.0003 6.24999C9.54007 6.24999 9.16699 5.87689 9.16699 5.41666C9.16699 4.95642 9.54007 4.58332 10.0003 4.58332Z' fill='%232A007C'/></svg>");
}

.woocommerce-MyAccount-navigation-link--edit-account a::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M3.33301 18.3333C3.33301 14.6514 6.31777 11.6667 9.99967 11.6667C13.6816 11.6667 16.6663 14.6514 16.6663 18.3333H14.9997C14.9997 15.5719 12.7611 13.3333 9.99967 13.3333C7.23825 13.3333 4.99967 15.5719 4.99967 18.3333H3.33301ZM9.99967 10.8333C7.23717 10.8333 4.99967 8.59584 4.99967 5.83334C4.99967 3.07084 7.23717 0.833344 9.99967 0.833344C12.7622 0.833344 14.9997 3.07084 14.9997 5.83334C14.9997 8.59584 12.7622 10.8333 9.99967 10.8333ZM9.99967 9.16668C11.8413 9.16668 13.333 7.67501 13.333 5.83334C13.333 3.99168 11.8413 2.50001 9.99967 2.50001C8.15801 2.50001 6.66634 3.99168 6.66634 5.83334C6.66634 7.67501 8.15801 9.16668 9.99967 9.16668Z' fill='%231F1E22'/></svg>");
}

.woocommerce-MyAccount-navigation-link--customer-logout a::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'><g clip-path='url(%23clip0_1_2677)'><path d='M10.0003 18.3333C5.39795 18.3333 1.66699 14.6023 1.66699 9.99999C1.66699 5.39761 5.39795 1.66666 10.0003 1.66666C12.7264 1.66666 15.1467 2.97564 16.6672 4.99935L14.4094 4.99941C13.2342 3.96248 11.6907 3.33332 10.0003 3.33332C6.31843 3.33332 3.33366 6.31809 3.33366 9.99999C3.33366 13.6819 6.31843 16.6667 10.0003 16.6667C11.6912 16.6667 13.235 16.0372 14.4102 14.9998H16.6677C15.1474 17.024 12.7267 18.3333 10.0003 18.3333ZM15.8337 13.3333V10.8333H9.16699V9.16666H15.8337V6.66666L20.0003 9.99999L15.8337 13.3333Z' fill='%231F1E22'/></g><defs><clipPath id='clip0_1_2677'><rect width='20' height='20' fill='white'/></clipPath></defs></svg>");
}

.woocommerce-MyAccount-navigation-link--wishlist a::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/></svg>");
}

.woocommerce-MyAccount-navigation li.is-active a {
  color: #2A007C;
}

.woocommerce-MyAccount-navigation li a:hover {
  color: #2A007C !important;
}

.search-bar-between-svg-and-input {
    height: 25px;
    border: 1px solid #ddd;
    position: absolute;
    right: 50px;
}

.woocommerce-account.woocommerce-page.woocommerce-orders .woocommerce-info {
  margin-top: 30px;
}

.book-name-author-name {
  margin-top: 2px;
}

.fajrfair-previous-order .fajrfair-orders-list {
  padding: 0px;
}

.fajrfair-order-status-processing .fajrfair-order-link {
  background-color: #fff;
}
.fajrfair-order-status-pending .fajrfair-order-link {
  background-color: #fff;
}
.fajrfair-order-status-on-hold .fajrfair-order-link {
  background-color: #fff;
}