#dtf-bs-app {
    display: grid;
    gap: 24px;
    font-family: Arial, sans-serif;
}

#dtf-bs-app .dtf-bs-designs {
    display: grid;
    gap: 28px;
}

#dtf-bs-app .dtf-bs-design-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: flex-start;
}

#dtf-bs-app .dtf-bs-design-block + .dtf-bs-design-block {
    padding-top: 28px;
    border-top: 1px solid #dbe4ef;
}

#dtf-bs-app .dtf-bs-design-left,
#dtf-bs-app .dtf-bs-design-right {
    min-width: 0;
}

#dtf-bs-app .dtf-bs-upload-box {
    position: relative;
    border: 1px solid #d9e4f2;
    border-radius: 20px;
    padding: 24px;
    background: linear-gradient(180deg, #f9fbff 0%, #f3f7fd 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

#dtf-bs-app .dtf-bs-step {
    width: 100%;
    min-height: 420px;
}

#dtf-bs-app .dtf-bs-upload-box[data-state="uploaded"] .dtf-bs-step-1 {
    display: none;
}

#dtf-bs-app .dtf-bs-upload-box[data-state="empty"] .dtf-bs-step-2 {
    display: none;
}

#dtf-bs-app .dtf-bs-step-1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    padding: 36px 24px;
    border-radius: 16px;
    background: #dfeef8;
    cursor: pointer;
    box-sizing: border-box;
}

#dtf-bs-app .dtf-bs-step-uploading {
    cursor: default;
}

#dtf-bs-app .dtf-bs-step-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

#dtf-bs-app .dtf-bs-upload-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: #1da1f2;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    box-shadow: 0 14px 30px rgba(29, 161, 242, 0.22);
}

#dtf-bs-app .dtf-bs-upload-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

#dtf-bs-app .dtf-bs-upload-subtitle {
    margin: 0;
    font-size: 16px;
    color: #334155;
}

#dtf-bs-app .dtf-bs-upload-browse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    background: #1da1f2;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(29, 161, 242, 0.22);
}

#dtf-bs-app .dtf-bs-upload-progress {
    width: min(260px, 100%);
    height: 10px;
    border-radius: 999px;
    background: rgba(29, 161, 242, 0.16);
    overflow: hidden;
}

#dtf-bs-app .dtf-bs-upload-progress-bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1da1f2 0%, #0ea5e9 100%);
    transition: width 0.2s ease;
}

#dtf-bs-app .dtf-bs-upload-progress-text {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

#dtf-bs-app .dtf-bs-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#dtf-bs-app .dtf-bs-preview-frame {
    width: 100%;
    min-height: 320px;
    border: 1px solid #dbe4ef;
    border-radius: 16px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

#dtf-bs-app .dtf-bs-preview-img {
    display: block;
    max-width: 100%;
    max-height: 360px;
}

#dtf-bs-app .dtf-bs-preview-size {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #334155;
}

#dtf-bs-app .dtf-bs-upload-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

#dtf-bs-app .dtf-bs-remove-image,
#dtf-bs-app .dtf-bs-add-more-image {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
    text-transform: none;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
    font-family: inherit;
}

#dtf-bs-app .dtf-bs-remove-image {
    background: rgba(15, 23, 42, 0.92);
}

#dtf-bs-app .dtf-bs-add-more-image {
    background: #16a34a;
}

#dtf-bs-app .dtf-bs-remove-image span[aria-hidden="true"],
#dtf-bs-app .dtf-bs-add-more-image span[aria-hidden="true"] {
    font-size: 18px;
    line-height: 1;
}

#dtf-bs-app .dtf-bs-design-right h3 {
    margin: 0 0 18px;
    font-size: 24px;
    color: #0f172a;
}

#dtf-bs-app .dtf-bs-rows {
    display: grid;
    gap: 8px;
}

#dtf-bs-app .dtf-bs-row {
    position: relative;
    display: grid;
    grid-template-columns: 152px 152px 108px;
    justify-content: flex-start;
    gap: 10px;
    align-items: end;
    width: max-content;
    max-width: 100%;
    padding: 8px 28px 8px 0;
    box-sizing: border-box;
}

#dtf-bs-app .dtf-bs-field {
    min-width: 0;
}

#dtf-bs-app .dtf-bs-field label {
    display: block;
    margin: 0 0 6px;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 700;
    color: #666;
    font-family: inherit;
    text-transform: none;
}

#dtf-bs-app .dtf-bs-input {
    width: 100%;
    min-height: 34px;
    margin: 0;
    padding: 8px 0;
    border: 0;
    background: transparent;
    box-sizing: border-box;
    text-align: center;
    font-size: 13px;
    line-height: 1;
    font-weight: 400;
    color: #1f2937;
    box-shadow: none;
    appearance: textfield;
    -moz-appearance: textfield;
    font-family: inherit;
}

#dtf-bs-app .dtf-bs-input::-webkit-outer-spin-button,
#dtf-bs-app .dtf-bs-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#dtf-bs-app .dtf-bs-value-control {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    align-items: center;
    min-height: 50px;
    border: 1px solid #b7bcc3;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
}

#dtf-bs-app .dtf-bs-qty-control {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    align-items: center;
    min-height: 50px;
    border: 1px solid #b7bcc3;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
}

#dtf-bs-app .dtf-bs-step-btn {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    min-height: 50px;
    border: 0;
    background: transparent;
    color: #4b5563;
    cursor: pointer;
    padding: 0;
    margin: 0;
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    text-transform: none;
}

#dtf-bs-app .dtf-bs-step-btn:hover {
    background: #f5f5f5;
}

#dtf-bs-app .dtf-bs-step-btn:active {
    background: #ededed;
}

#dtf-bs-app .dtf-bs-step-btn:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.25);
}

#dtf-bs-app .dtf-bs-link-btn {
    margin: 12px 0 20px;
    border: 0;
    background: transparent;
    color: #0073aa;
    padding: 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    text-transform: none;
    transition: font-weight 0.15s ease, color 0.15s ease;
    font-family: inherit;
}

#dtf-bs-app .dtf-bs-link-btn:hover,
#dtf-bs-app .dtf-bs-link-btn:focus {
    background: transparent;
    color: #005a87;
    font-weight: 700;
}

#dtf-bs-app .dtf-bs-print-type-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 14px;
    flex-wrap: wrap;
}

#dtf-bs-app .dtf-bs-print-type-hint {
    color: #111827;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

#dtf-bs-app .dtf-bs-print-type-hint.is-hidden {
    display: none;
}

#dtf-bs-app .dtf-bs-print-type-switch {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

#dtf-bs-app .dtf-bs-print-type-btn {
    appearance: none;
    border: 1px solid currentColor;
    border-radius: 8px;
    background: transparent;
    padding: 8px 14px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#dtf-bs-app .dtf-bs-print-type-dtf {
    color: #dc2626;
}

#dtf-bs-app .dtf-bs-print-type-uv {
    color: #2563eb;
}

#dtf-bs-app .dtf-bs-print-type-btn.is-active {
    color: #ffffff;
}

#dtf-bs-app .dtf-bs-print-type-dtf.is-active {
    background: #dc2626;
}

#dtf-bs-app .dtf-bs-print-type-uv.is-active {
    background: #2563eb;
}

#dtf-bs-app .dtf-bs-options {
    margin-bottom: 15px;
}

#dtf-bs-app .dtf-bs-precut-card {
    border-radius: 10px;
    background: #dfeef8;
    padding: 14px 16px;
}

#dtf-bs-app .dtf-bs-precut-title {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

#dtf-bs-app .dtf-bs-precut-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1f2937;
    cursor: pointer;
    font-size: 14px;
}

#dtf-bs-app .dtf-bs-precut-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
}

#dtf-bs-app .dtf-bs-summary {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    display: grid;
    gap: 8px;
}

#dtf-bs-app .dtf-bs-grand-total-row {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
}

#dtf-bs-app .dtf-bs-grand-total-prices {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
}

#dtf-bs-app .dtf-bs-compare-total {
    color: #94a3b8;
    text-decoration: line-through;
    font-size: 15px;
    font-weight: 600;
}

#dtf-bs-app .dtf-bs-grand-total {
    font-size: 24px;
    font-weight: 700;
    color: #b91c1c;
}

#dtf-bs-app .dtf-bs-savings {
    font-size: 15px;
    font-weight: 700;
    color: #15803d;
}

#dtf-bs-app .dtf-bs-cart-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

#dtf-bs-app .dtf-bs-cart-btn {
    grid-column: 2;
    display: inline-block;
    width: 168px;
    min-height: 32px;
    background: #c70404;
    color: #fff;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(199, 4, 4, 0.24);
    white-space: nowrap;
    text-transform: none;
    font-family: inherit;
}

#dtf-bs-app .dtf-bs-feedback {
    grid-column: 2;
    min-height: 18px;
}

#dtf-bs-app .dtf-bs-feedback.is-error {
    color: #b00020;
}

#dtf-bs-app .dtf-bs-feedback.is-success {
    color: #0a7c1f;
}

#dtf-bs-app .dtf-bs-remove-row {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border: 0;
    background: transparent;
    color: #c70404;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

#dtf-bs-app .dtf-bs-remove-row:disabled {
    display: none;
}

@media (max-width: 980px) {
    #dtf-bs-app .dtf-bs-design-block {
        grid-template-columns: 1fr;
    }

    #dtf-bs-app .dtf-bs-row {
        grid-template-columns: 1fr;
        width: 100%;
        padding-right: 0;
    }

    #dtf-bs-app .dtf-bs-step {
        min-height: auto;
    }

    #dtf-bs-app .dtf-bs-preview-frame {
        min-height: 240px;
    }

    #dtf-bs-app .dtf-bs-remove-row {
        top: 0;
        right: 0;
    }

    #dtf-bs-app .dtf-bs-cart-actions {
        grid-template-columns: 1fr;
    }

    #dtf-bs-app .dtf-bs-cart-btn,
    #dtf-bs-app .dtf-bs-feedback {
        grid-column: auto;
    }
}
