/* ACP School Stats Dashboard CSS */
button{
    cursor: pointer;
}

.acp-school-dashboard-header {
    background: var(--wp--preset--color--dark-blue);
    color: #fff;
    padding: 4.5rem 0;
   
    .acp-school-dashboard-wrapper{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    }
}

.acp-school-dashboard-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.acp-school-dashboard-card-stat,
.acp-school-dashboard-stat {
    background: rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    min-width: 100%;
    /* font-family: var(--wp--preset--font-family--noto-sans-hebrew-ex-cond); */
    font-size:var(--wp--preset--font-size--medium);
    font-weight: 600;
    gap: 1.4rem;
}

@media screen and (min-width: 540px){
    .acp-school-dashboard-card-stat,
    .acp-school-dashboard-stat{
        min-width: 234px;
    }
    .acp-school-dashboard-card-stat{
        min-width: 224px;
    }
}
.acp-school-dashboard-card-stat__icon,
.acp-school-dashboard-stat__icon{
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.acp-school-dashboard-card-stat__label,
.acp-school-dashboard-stat__label{
    font-size: var(--wp--preset--font-size--small-14);
    font-weight: 400;
}
.acp-school-dashboard-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 270px;
}
/* .acp-school-dashboard-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    overflow: hidden;
    border: 2px solid #223357;
} */
.acp-school-dashboard-card-avatar,
.acp-school-dashboard-avatar {
    width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border-radius: 50%;
  background: var(--wp--preset--color--foreground);
  overflow: hidden;
  border: 2px solid var(--wp--preset--color--primary);
  padding: 3px;
  img{
     border-radius: 50%;
     aspect-ratio: 1/1;
     width: 100%;
     height: 100%;
     object-fit: cover;
  }
}
.acp-school-dashboard-profile-info {
    display: flex;
    flex-direction: column;
}
.acp-school-dashboard-card-name,
.acp-school-dashboard-profile-name {
    font-weight: 500;
    /* font-family: var(--wp--preset--font-family--noto-sans-hebrew-ex-cond); */
    font-size: var(--wp--preset--font-size--large);
}
.acp-school-dashboard-card-role,
.acp-school-dashboard-profile-role {
    font-size: var(--wp--preset--font-size--small-14);
 
    color: #b0c4e0;
}
.acp-school-dashboard-account-btn {
    background: #fff;
    color: #223357;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
    margin-top: 0.5rem;
    font-size:var(--wp--preset--font-size--x-small);
    width: 135px;
    display: flex;
    align-items: center;
    gap:2px;
}
.acp-school-dashboard-tabs {
    display: flex;
    gap: 2rem;
    margin: 2rem 0 1rem 0;
    font-size:var(--wp--preset--font-size--medium);
    border-bottom: 2px solid #eee;

   

}
.acp-school-dashboard-tab {
    padding: 0.5rem 0;
    cursor: pointer;
     border:none;
    background: transparent;
    border-bottom: 3px solid transparent;
}
.acp-school-dashboard-tab.active {
    border-bottom: 3px solid #223357;
    color: #223357;
}
.acp-school-dashboard-list {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.acp-school-dashboard-card {
    background: #000000;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    gap: 20px;
    color: #fff;
}
@media screen and (max-width: 540px){
    .acp-school-dashboard-card{
        flex-direction: column;
        align-items: flex-start;
    }
    
}
.acp-school-dashboard-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;

}
/* .acp-school-dashboard-card-stat {
    background: rgba(255,255,255,0.1);
    border-radius: 2.4rem;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    min-width: 120px;
    font-size: 1rem;
    font-weight: 500;
    gap: 0.5rem;
} */
.acp-school-dashboard-card-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.acp-school-dashboard-card-info {
    display: flex;
    flex-direction: column;
   
   
}

/* Orders Tab Card */
.acp-order-row__wrapper{
    direction: rtl;
    background: #f7f9ff;
    border: 2px solid #bcd4ff;
    border-radius: 3rem;
    color: #1b2433;
    display: grid;
    grid-template-columns: 2fr 1fr 50px;
    gap: 2.4rem;
    align-items: center;
    padding: 1.2rem 1.8rem;
    .color-consumed strong{
    color: var(--wp--preset--color--primary);
    }
    .color-active strong{
    color: green;
    }
    .color-cancelled strong{
    color: red;
    }
}

.acp-order-row__projection-date{
    background-color: var(--wp--preset--color--primary);
    color: #fff;
    font-size: var(--wp--preset--font-size--medium);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding-top: 1rem;
    padding-bottom: 3.5rem;
    margin-bottom: -2.5rem;
}
.acp-order-row__projection-date >div{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 0.8rem;
}
.acp-order-group {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.acp-order-group__date {
    margin: 0;
    font-size: 2.4rem;
    font-weight: 700;
    color: #2f3a52;
}

.acp-order-group__cards {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.acp-history-group {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.acp-history-group__date {
    margin: 0;
    font-size: 2.4rem;
    font-weight: 700;
    color: #2f3a52;
}

.acp-history-group__cards {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.acp-history-row {
    display: flex;
    gap: 2.4rem;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: 0;
    color: var(--wp--preset--color--foreground);
    padding: 0;
}
.acp-history-row svg{
    display: block;
}
.acp-history-row__thumb-wrap {
    width: 32rem;
    height: 18rem;
    border-radius: 2.4rem;
    overflow: hidden;
    flex: 0 0 auto;
    position: relative;
    background: #1e2737;
}

.acp-history-row__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.acp-history-row__thumb-wrap .mc-heart {
    position: absolute;
    top: .8rem;
    right: .8rem;
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.24);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.acp-history-row__thumb-wrap .mc-heart svg {
    width: 2rem;
    height: 2rem;
}

.acp-history-row__thumb-wrap .mc-heart path {
    fill: transparent;
    stroke: #fff;
}

.acp-history-row__thumb-wrap .mc-heart.is_fav path {
    fill: #fff;
    stroke: #fff;
}

.acp-history-row__content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
}

.acp-history-row__meta {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: var(--wp--preset--font-size--small);
}

.acp-history-row__title {
    font-size: var(--wp--preset--font-size--medium);
    /* font-family: var(--wp--preset--font-family--noto-sans-hebrew-ex-cond); */
    font-weight: 700;
}
.acp-history-row__meta-text{
    font-size: var(--wp--preset--font-size--small-14);
}
.acp-history-row__chips {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
}

.acp-history-row__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.2rem;
    padding: 0 1.2rem;
    border-radius: 999px;
    border: 1px solid #d3dae8;
    background: #f3f5fa;
    color: #5a647f;
    font-size: 1.4rem;
    font-weight: 500;
}
.acp-history-row__chip:hover{
    background: var(--wp--preset--color--primary);
    color: #fff;
}
.acp-history-row__time {
    position: absolute;
    top: .8rem;
    left: .8rem;
    background: rgba(255,255,255,.92);
    color: #1f2937;
    border-radius: 8px;
    padding: .4rem 1rem;
    font-size: 1.6rem;
    line-height: 1.2;
    font-weight: 600;
}

@media (max-width: 900px) {
    .acp-history-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
    }
    .acp-history-row__thumb-wrap {
        width: 100%;
        height: 20rem;
        order: -1;
    }
    .acp-history-row__title {
        font-size: 2.4rem;
    }
}

.acp-order-row.is-done {
    border-color: #2c87ff;
}

.acp-order-row__actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    color: #8a93ad;
}

.acp-order-row__icon-btn {
    border: 0;
    background: transparent;
    color: #b00;
    width: 2.8rem;
    height: 2.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    &:hover{
        color: var(--wp--preset--color--primary);
    }
}

.acp-order-row__meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: #7f889f;
    font-size: var(--wp--preset--font-size--small);
    min-width: 220px;
}
.acp-order-row__meta-line{
    display: flex;
    align-items: center;
    gap:3px;
}
.acp-order-row__meta strong {
    color: #4f586f;
    font-weight: 700;
}

.acp-order-row__main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    min-width: 0;
    flex-grow: 1;
}

.acp-order-row__text {
    min-width: 0;
    flex-grow: 1;
}

.acp-order-row__title {
    font-size: var(--wp--preset--font-size--large);
    line-height: 1.1;
    font-weight: 700;
    color: #121826;
}

.acp-order-row__sub {
    margin-top: .8rem;
    color: #6d768f;
   font-size: var(--wp--preset--font-size--small);
}

.acp-order-row__thumb-wrap {
    width: 22rem;
    /* height: 12rem; */
    border-radius: 2.4rem;
    overflow: hidden;
    position: relative;
    flex: 0 0 auto;
    background: #0e1625;
    aspect-ratio: 16/9;
}

.acp-order-row__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.acp-order-row__badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 960px) {
    .acp-order-row__wrapper{
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .acp-order-row__actions {
        order: 3;
    }
    .acp-order-row__main {
        order: 1;
    }
    .acp-order-row__meta {
        order: 2;
        min-width: 0;
    }
    .acp-order-row__thumb-wrap {
        width: 16rem;
        height: 9rem;
    }
}
