.aa-ufh-design-card {
    margin: 28px 0;
    padding: 26px 28px;
    border: 1px solid #dedede;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
}

.aa-ufh-design-card * {
    box-sizing: border-box;
}

.aa-ufh-design-card__intro {
    max-width: 760px;
    margin-bottom: 18px;
}

.aa-ufh-design-card__eyebrow {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .65;
}

.aa-ufh-design-card h2 {
    margin: 0 0 8px;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.15;
}

.aa-ufh-design-card p {
    margin: 0;
}

.aa-ufh-design-fields {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(320px, 1fr);
    gap: 18px 22px;
    align-items: start;
}

.aa-ufh-design-field {
    min-width: 0;
}

.aa-ufh-design-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}

.aa-ufh-design-field small {
    display: block;
    margin-top: 7px;
    color: #666;
    line-height: 1.4;
}

.aa-ufh-area-wrap {
    position: relative;
}

.aa-ufh-area-wrap input {
    width: 100%;
    min-height: 48px;
    padding-right: 48px !important;
}

.aa-ufh-area-wrap > span {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    pointer-events: none;
}

.aa-ufh-files {
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 6px 8px;
    border: 1px solid #cfcfcf;
    background: #fff;
    line-height: 34px;
}

.aa-ufh-files::file-selector-button {
    height: 34px;
    margin: 0 8px 0 0;
    vertical-align: middle;
}

.aa-ufh-files::-webkit-file-upload-button {
    height: 34px;
    margin: 0 8px 0 0;
    vertical-align: middle;
}

.aa-ufh-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.aa-ufh-file-list span {
    display: inline-block;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 3px;
    background: #f2f2f2;
    font-size: 12px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aa-ufh-add-design {
    grid-column: 1 / -1;
    justify-self: start;
    min-width: 220px;
    min-height: 46px;
    padding: 12px 22px;
    border: 1px solid #f36c21 !important;
    background: #f36c21 !important;
    color: #fff !important;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .02em;
}

.aa-ufh-add-design:hover,
.aa-ufh-add-design:focus {
    border-color: #d85f1d !important;
    background: #d85f1d !important;
    color: #fff !important;
}

.aa-ufh-add-design[disabled] {
    cursor: not-allowed;
    opacity: .45;
}

.aa-ufh-add-design.is-loading {
    cursor: wait;
}

.aa-ufh-design-message {
    grid-column: 1 / -1;
    min-height: 0;
    font-weight: 600;
}

.aa-ufh-design-message.is-error {
    color: #b42318;
}

.aa-ufh-design-message.is-success {
    color: #277a3a;
}

.aa-ufh-design-added {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    border-left: 4px solid #f36c21;
    background: #f6f6f6;
}

@media (max-width: 900px) {
    .aa-ufh-design-fields {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .aa-ufh-design-card {
        margin: 20px 0;
        padding: 20px 16px;
    }

    .aa-ufh-add-design,
    .aa-ufh-design-message {
        grid-column: 1;
    }

    .aa-ufh-add-design {
        width: 100%;
        justify-self: stretch;
    }
}



.aa-ufh-cart-item-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.aa-ufh-cart-item-icon {
    display: block;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.aa-ufh-cart-item-copy {
    display: block;
    min-width: 0;
}

.aa-ufh-cart-item-title {
    display: block;
    font-weight: 700;
}

.aa-ufh-cart-item-meta {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.4;
    color: #444;
    overflow-wrap: anywhere;
}

.aa-ufh-cart-item-quantity {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.aa-ufh-cart-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #cfcfcf;
    border-radius: 4px;
    background: #f7f7f7;
    color: #444 !important;
    text-decoration: none !important;
}

.aa-ufh-cart-remove svg {
    display: block;
    width: 17px;
    height: 17px;
}

.aa-ufh-cart-remove:hover,
.aa-ufh-cart-remove:focus {
    border-color: #f36c21;
    background: #fff;
    color: #f36c21 !important;
}

@media (max-width: 640px) {
    .aa-ufh-cart-item-wrap {
        align-items: flex-start;
        gap: 10px;
    }

    .aa-ufh-cart-item-icon {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
    }
}
