/* China Caravans — Add to Compare styling
   Brand colors: yellow var(--color-primary), near-black #0d0d0c */

 
.btn-all.added svg {
    display: none;
}
.btn-all.added {
    background: #000 !important;
    color: #FFF !important;
}
 
#compare-floating-bar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 140%);
  display: flex;
  align-items: center;
  gap: 18px;
  background: #0d0d0c;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 998;
  transition: transform 0.25s ease;
}
#compare-floating-bar.show {
  transform: translate(-50%, 0);
}
#compare-floating-bar .compare-count-text {
    font-size: 14px;
    line-height: normal;
    color: #fff;
    font-family: 'GeneralSans-Regular';
}
#compare-floating-bar button {
    background: var(--color-primary);
    border: none;
    padding: 10px 18px;
    border-radius: 26px;
    cursor: pointer;
    font-family: 'GeneralSans-Medium';
    font-weight: 500;
    font-size: 16px;
    color: #000;
}
#compare-limit-warning {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translate(-50%, -140%);
  background: #fff4d9;
  color: #7a5600;
  border: 1px solid var(--color-primary);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 1000;
  transition: transform 0.25s ease;
}
#compare-limit-warning.show {
  transform: translate(-50%, 0);
}

#compare-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 12, 0.6);
  z-index: 1001;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#compare-modal-overlay.show {
  display: flex;
}
#compare-modal {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 75%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.compare-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #ece9e2;
    font-family: 'GeneralSans-Medium';
    font-weight: 500;
    font-size: 32px;
    line-height: 112%;
    text-align: center;
    color: #FFF;
    background: #262628;
}
.compare-modal-header button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e5e3dd;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    color: #FFF;
    align-items: center;
    justify-content: center;
}
.compare-modal-body {
  padding: 16px 20px 20px;
  overflow-y: auto;
}

#compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}
#compare-table td {
    padding: 10px;
    text-align: center;
    border-top: 1px solid #ece9e2;
    vertical-align: top;
    font-family: 'GeneralSans-Medium', sans-serif;
    font-weight: 500;
    font-size: 16px;
    text-transform: capitalize;
    color: rgba(19, 18, 17, 0.4);
}
#compare-table .compare-label {
    text-align: left;
    color: #131211; 
}
#compare-table .compare-col-head {
  position: relative;
  border-top: none;
}
#compare-table .compare-col-head img {
    width: 100%;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 16px;
    border: 4px solid var(--color-primary);
    padding: 0;
}
#compare-table .compare-name {
    font-family: 'GeneralSans-Medium';
    font-weight: 500;
    font-size: 18px;
    line-height: 112%;
    text-align: center;
    color: #131211;
    padding: 0;
}
#compare-table .compare-price {
    margin: 10px 0 15px;
    font-size: 15px;
    line-height: normal;
    color: #333;
    font-family: 'GeneralSans-Regular';
    padding: 0;

}
.compare-remove-btn {
    position: absolute;
    top: 0;
    right: 0rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #e5e3dd;
    background: #e5e3dd;
    cursor: pointer !important;
    font-size: 11px;
    display: flex;
    align-items: center;
    padding: 0 !important;
    justify-content: center;
}
 #compare-table tr:first-child td:first-child {
    border: none;
}

@media screen and  (max-width:767px) {
    #compare-modal { 
      max-width: 100%;
}
 #compare-floating-bar { 
    width: 74%;
}
#compare-table {
    width: auto;
}
}
 

@media screen and  (max-width:575px) {
#compare-table td { 
    font-size: 13px; 
}
#compare-table .compare-name { 
    font-size: 15px; 
}
}
 