
/* =========================================
   PUBLIC SUBSCRIPTION CART
========================================= */

.public-cart-button {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;
    padding: 0;

    border: 0;
    background: transparent;

    color: #24313a;

    cursor: pointer;
}

.public-cart-button svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.public-cart-badge {
    position: absolute;
    top: 0;
    right: -1px;

    min-width: 16px;
    height: 16px;
    padding: 0 4px;

    border-radius: 999px;

    background: var(--color-primary);
    color: #ffffff;

    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.public-cart-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        rgba(18, 28, 35, 0.42);
}

.public-cart-modal[hidden] {
    display: none !important;
}

.public-cart-box {
    width: min(430px, 100%);
    max-height: calc(100vh - 40px);

    overflow: auto;

    padding: 20px;

    border: 1px solid #dfe5e8;
    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 18px 55px
        rgba(20, 35, 45, 0.18);
}

.public-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 18px;
}

.public-cart-head h3 {
    margin: 0;

    font-size: 18px;
    color: #1e2b36;
}

.public-cart-close {
    width: 30px;
    height: 30px;

    padding: 0;

    border: 0;
    background: transparent;

    font-size: 24px;
    line-height: 30px;

    color: #64717c;

    cursor: pointer;
}

.public-cart-plan-name {
    margin-bottom: 6px;

    font-size: 17px;
    font-weight: 650;

    color: #1e2b36;
}

.public-cart-plan-description {
    margin-bottom: 18px;

    font-size: 13px;
    line-height: 1.5;

    color: #687582;
}

.public-cart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    padding: 11px 0;

    border-top: 1px solid #edf0f2;

    font-size: 13px;
}

.public-cart-total strong {
    font-size: 16px;
    color: #1e2b36;
}

.public-cart-total-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.public-cart-total-value .public-plan-usd-estimate {
    font-size: 12px;
    line-height: 1.2;
}

.public-cart-empty,
.public-cart-loading {
    padding: 24px 4px;

    text-align: center;

    font-size: 13px;
    color: #78838c;
}

.public-cart-actions {
    display: grid;
    grid-template-columns: auto 1fr;

    gap: 10px;

    margin-top: 18px;
}

.public-cart-remove,
.public-cart-checkout {
    min-height: 40px;

    padding: 0 16px;

    border-radius: 7px;

    font: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
}

.public-cart-remove {
    border: 1px solid #d7dde1;

    background: #ffffff;
    color: #5f6b75;
}

.public-cart-checkout {
    border: 1px solid var(--color-primary);

    background: var(--color-primary);
    color: var(--color-primary-text);
}

.public-cart-checkout:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.public-cart-remove:disabled,
.public-cart-checkout:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 600px) {

    .public-cart-box {
        padding: 17px;
    }

    .public-cart-actions {
        grid-template-columns: 1fr;
    }
}

/* END PUBLIC SUBSCRIPTION CART */
