:root {
    --bg: #f5f0e8;
    --bg-strong: #ead9c3;
    --card: rgba(255, 251, 247, 0.78);
    --line: rgba(78, 47, 16, 0.1);
    --text: #22160d;
    --muted: #6e5f55;
    --accent: #f26a21;
    --accent-dark: #c64d0d;
    --accent-soft: #ffe4d1;
    --accent-strong: #ff8a3d;
    --deep: #1f2a44;
    --success: #2f7d4a;
    --danger: #a03426;
    --shadow: 0 24px 70px rgba(82, 46, 16, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter Tight", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(242, 106, 33, 0.18), transparent 28%),
        radial-gradient(circle at 85% 18%, rgba(31, 42, 68, 0.12), transparent 22%),
        radial-gradient(circle at bottom left, rgba(255, 177, 122, 0.24), transparent 24%),
        linear-gradient(180deg, #fffaf4 0%, var(--bg) 54%, #f2ebe2 100%);
    min-height: 100vh;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

.shell,
.admin-shell,
.editor-shell {
    width: min(1200px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 32px 0 48px;
}

.landing-shell {
    padding-top: 48px;
}

.hero {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 24px;
    align-items: center;
    min-height: 65vh;
}

.order-entry-shell {
    position: relative;
    min-height: 100vh;
    display: grid;
    align-items: center;
}

.order-entry-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 440px);
    gap: 44px;
    align-items: center;
}

.order-entry-copy {
    max-width: 680px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 35px rgba(39, 28, 19, 0.08);
    color: var(--deep);
    font-size: 0.92rem;
    font-weight: 600;
}

.hero-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 30px 0 22px;
}

.hero-point,
.template-pill {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 248, 242, 0.56));
    box-shadow: 0 18px 44px rgba(53, 32, 15, 0.08);
    backdrop-filter: blur(12px);
}

.hero-point {
    padding: 20px 22px;
}

.hero-point strong,
.template-pill strong {
    display: block;
    color: var(--deep);
    margin-bottom: 8px;
}

.hero-point p,
.template-pill span {
    margin: 0;
}

.template-pill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.template-pill {
    padding: 18px 18px 16px;
}

.order-entry-panel {
    position: relative;
}

.order-entry-glow {
    position: absolute;
    inset: 24px -14px -24px 18px;
    border-radius: 36px;
    background:
        radial-gradient(circle at top, rgba(255, 149, 77, 0.42), transparent 48%),
        radial-gradient(circle at bottom right, rgba(31, 42, 68, 0.18), transparent 46%);
    filter: blur(18px);
    pointer-events: none;
}

.order-entry-card {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 20px;
    padding: 34px;
    border-radius: 32px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 246, 0.88)),
        rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 30px 70px rgba(69, 37, 13, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(18px);
}

.order-entry-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    color: var(--accent-dark);
    background: linear-gradient(180deg, #fff1e6, #ffe0c5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.order-entry-header h2 {
    margin: 0 0 8px;
    font-size: 2rem;
    color: var(--deep);
}

.order-entry-header p,
.order-entry-footer {
    margin: 0;
}

.order-entry-label {
    gap: 10px;
    color: var(--deep);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.order-entry-label input {
    min-height: 62px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid rgba(31, 42, 68, 0.12);
    background: rgba(247, 248, 252, 0.82);
    box-shadow: inset 0 1px 3px rgba(31, 42, 68, 0.05);
}

.order-entry-label input:focus {
    outline: none;
    border-color: rgba(242, 106, 33, 0.48);
    box-shadow:
        0 0 0 5px rgba(242, 106, 33, 0.12),
        inset 0 1px 3px rgba(31, 42, 68, 0.05);
}

.order-entry-submit {
    min-height: 58px;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    box-shadow: 0 16px 34px rgba(242, 106, 33, 0.28);
}

.order-entry-link {
    justify-self: center;
}

.order-entry-footer {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    text-align: center;
    color: rgba(31, 42, 68, 0.56);
    font-size: 0.92rem;
}

.sdpp-login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.sdpp-login-wrapper {
    width: 100%;
    max-width: 492px;
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    align-content: center;
    gap: 22px;
    justify-items: center;
    padding: 32px 16px;
}

.sdpp-access-card {
    width: 100%;
    display: grid;
    gap: 22px;
    padding: 34px;
    border-radius: 28px;
    background: rgba(255, 252, 248, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow:
        0 28px 70px rgba(58, 39, 24, 0.14),
        0 8px 24px rgba(242, 106, 33, 0.06);
    backdrop-filter: blur(14px);
}

.sdpp-access-icon-wrap {
    display: flex;
    justify-content: center;
}

.sdpp-access-icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #ff7a1a;
    background: linear-gradient(180deg, #fff3df 0%, #ffe7c6 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sdpp-access-header {
    text-align: center;
}

.sdpp-access-title {
    margin: 0 0 8px;
    font-size: clamp(2rem, 4vw, 2.35rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #10233f;
}

.sdpp-access-subtitle {
    margin: 0;
    font-size: 1rem;
    color: #6f7f95;
}

.sdpp-access-field {
    display: grid;
    gap: 10px;
}

.sdpp-access-label {
    color: #4f6584;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sdpp-access-input {
    min-height: 56px;
    border-radius: 16px;
    border: 1px solid rgba(123, 143, 171, 0.32);
    background: rgba(247, 249, 252, 0.96);
    padding: 0 16px;
    color: #10233f;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sdpp-access-input::placeholder {
    color: #8392a7;
}

.sdpp-access-input:focus {
    outline: none;
    border-color: rgba(255, 122, 26, 0.55);
    box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.12);
    transform: translateY(-1px);
}

.sdpp-login-message {
    min-height: 20px;
    font-size: 0.92rem;
    color: var(--danger);
}

.sdpp-access-submit {
    min-height: 56px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #ff7a1a 0%, #ff9a3d 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(255, 122, 26, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sdpp-access-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(255, 122, 26, 0.34);
}

.sdpp-login-footer {
    color: #8d9bb0;
    font-size: 0.92rem;
    text-align: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    font-size: 0.75rem;
    margin-bottom: 8px;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
label,
button,
input,
select,
textarea {
    font-family: "Inter Tight", "Segoe UI", sans-serif;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 0.95;
    margin: 0 0 18px;
}

h2 {
    margin: 0 0 14px;
}

.lead,
.helper,
.subline,
td,
th,
label,
p {
    color: var(--muted);
}

.glass-card,
.template-card,
.stat-card {
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border-radius: 24px;
}

.glass-card {
    padding: 24px;
}

.access-form,
.login-card {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 8px;
    font-size: 0.95rem;
}

input,
select,
textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(44, 33, 23, 0.14);
    background: rgba(255, 255, 255, 0.84);
    padding: 12px 14px;
    color: var(--text);
}

textarea {
    resize: vertical;
}

.primary-btn,
.secondary-btn,
.text-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
}

.primary-btn,
.secondary-btn {
    border: 0;
    padding: 0 18px;
}

.primary-btn {
    background: var(--accent);
    color: #fff8f1;
}

.primary-btn:hover,
.secondary-btn:hover {
    transform: translateY(-1px);
}

.secondary-btn {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.text-link {
    color: var(--accent-dark);
}

.template-grid,
.stats-grid,
.admin-grid {
    display: grid;
    gap: 18px;
}

.template-grid {
    margin-top: 28px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.template-card,
.stat-card {
    padding: 22px;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.login-card {
    width: min(480px, calc(100vw - 32px));
}

.flash {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
}

.flash-error {
    background: rgba(160, 52, 38, 0.08);
    color: var(--danger);
}

.admin-topbar,
.orders-head,
.editor-head,
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.stats-grid {
    margin: 24px 0;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-card span {
    display: block;
    margin-bottom: 8px;
}

.stat-card strong {
    font-size: 2rem;
    color: var(--text);
}

.admin-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    margin-bottom: 22px;
}

.orders-card {
    overflow: hidden;
}

.table-wrap {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 14px 10px;
    border-top: 1px solid var(--line);
    vertical-align: top;
}

.subline {
    display: block;
    font-size: 0.85rem;
    margin-top: 6px;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-line input {
    width: auto;
}

.action-result {
    min-height: 24px;
    color: var(--accent-dark);
    font-size: 0.92rem;
}

.editor-shell {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 20px;
    align-items: start;
}

.editor-sidebar {
    position: sticky;
    top: 18px;
}

.upload-dropzone {
    padding: 16px;
    border: 1px dashed rgba(44, 33, 23, 0.2);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.4);
}

.upload-dropzone input {
    margin-top: 10px;
    background: transparent;
    padding: 0;
    border: 0;
}

.photo-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.photo-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.photo-item img,
.slot-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 14px;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.slot-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.6);
}

.slot-preview {
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    background: linear-gradient(135deg, #f1e2d4, #fefdf9);
    overflow: hidden;
    margin-bottom: 12px;
}

.slot-empty {
    display: grid;
    place-items: center;
    height: 100%;
    color: var(--muted);
    font-size: 0.9rem;
}

.text-panel {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.text-fields {
    display: grid;
    gap: 14px;
}

.status-pill {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(47, 125, 74, 0.12);
    color: var(--success);
}

.export-result a {
    color: var(--accent-dark);
}

.sdpp-upload-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
    background:
        radial-gradient(circle at top left, rgba(242, 106, 33, 0.15), transparent 28%),
        radial-gradient(circle at 85% 18%, rgba(31, 42, 68, 0.1), transparent 22%),
        linear-gradient(180deg, #fffaf4 0%, #f5f0e8 54%, #f2ebe2 100%);
}

.sdpp-upload-wrap {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 32px;
}

.sdpp-upload-title {
    margin: 0 0 12px;
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #10233f;
}

.sdpp-upload-sub {
    margin: 0;
    font-size: 1.05rem;
    color: #6f7f95;
    line-height: 1.6;
}

.sdpp-upload-progress {
    display: grid;
    gap: 10px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 252, 248, 0.72);
    border: 1px solid rgba(255, 122, 26, 0.12);
}

.sdpp-upload-progress-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(123, 143, 171, 0.12);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sdpp-upload-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ff7a1a 0%, #ff9a3d 100%);
    border-radius: 999px;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 12px rgba(255, 122, 26, 0.4);
}

.sdpp-upload-progress-text {
    font-size: 0.95rem;
    color: #10233f;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.sdpp-upload-dropzone {
    position: relative;
    padding: 56px 32px;
    border: 2px dashed rgba(255, 122, 26, 0.28);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 250, 245, 0.8), rgba(255, 248, 242, 0.6));
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    box-shadow: inset 0 2px 8px rgba(255, 122, 26, 0.04);
}

.sdpp-upload-dropzone:hover {
    border-color: rgba(255, 122, 26, 0.42);
    background: linear-gradient(135deg, rgba(255, 250, 245, 0.95), rgba(255, 248, 242, 0.88));
    box-shadow: 0 8px 24px rgba(255, 122, 26, 0.12), inset 0 2px 8px rgba(255, 122, 26, 0.08);
}

.sdpp-upload-dropzone.dragover {
    border-color: rgba(255, 122, 26, 0.68);
    background: linear-gradient(135deg, rgba(255, 250, 245, 1), rgba(255, 248, 242, 0.95));
    box-shadow: 0 16px 40px rgba(255, 122, 26, 0.24), inset 0 2px 8px rgba(255, 122, 26, 0.12);
    transform: scale(1.01);
}

.sdpp-dropzone-content {
    display: grid;
    place-items: center;
    gap: 16px;
    text-align: center;
}

.sdpp-dropzone-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    color: #ff7a1a;
    opacity: 0.85;
    animation: float-up 3s ease-in-out infinite;
}

@keyframes float-up {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.sdpp-dropzone-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(255, 122, 26, 0.1));
}

.sdpp-dropzone-content > p {
    margin: 0;
    color: #10233f;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.sdpp-dropzone-or {
    display: block;
    color: #8392a7;
    font-size: 0.95rem;
    font-weight: 600;
}

.sdpp-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    border: 0;
    border-radius: 28px;
    padding: 0 24px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: "Inter Tight", "Segoe UI", sans-serif;
}

.sdpp-btn-primary {
    background: linear-gradient(135deg, #ff7a1a 0%, #ff9a3d 100%);
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(255, 122, 26, 0.28);
}

.sdpp-btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(255, 122, 26, 0.36);
}

.sdpp-btn-primary:active:not(:disabled) {
    transform: translateY(-1px);
}

.sdpp-btn-primary:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 12px 24px rgba(255, 122, 26, 0.12);
}

.sdpp-btn-secondary {
    background: rgba(255, 122, 26, 0.14);
    color: #ff7a1a;
    box-shadow: 0 4px 12px rgba(255, 122, 26, 0.08);
}

.sdpp-btn-secondary:hover {
    transform: translateY(-3px);
    background: rgba(255, 122, 26, 0.22);
    box-shadow: 0 8px 20px rgba(255, 122, 26, 0.16);
}

.sdpp-upload-thumbs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 252, 248, 0.8), rgba(255, 248, 242, 0.6));
    border: 1px solid rgba(255, 122, 26, 0.14);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    max-height: 250px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), grid-template-columns 0.4s ease;
}

.sdpp-upload-thumbs.expanded {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    max-height: 2000px;
    overflow: visible;
}

.sdpp-upload-thumbs.hidden {
    display: none;
}

.sdpp-upload-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #f1e2d4, #fefdf9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    animation: slide-in 0.3s ease-out;
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sdpp-upload-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sdpp-thumb-remove {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.92);
    color: #a03426;
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
    opacity: 0;
    padding: 0;
}

.sdpp-upload-thumb:hover .sdpp-thumb-remove {
    opacity: 1;
    background: rgba(255, 255, 255, 1);
}

.sdpp-thumb-remove:hover {
    transform: translate(-50%, -50%) scale(1.15);
}

.sdpp-upload-thumbs-toggle {
    width: 100%;
    justify-content: center;
    margin: 8px 0 16px;
}

.sdpp-upload-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 12px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 122, 26, 0.1);
}

.sdpp-upload-actions .sdpp-btn {
    width: 100%;
}

.sdpp-upload-actions a.sdpp-btn {
    text-decoration: none;
}

.sdpp-upload-processing {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
    z-index: 200;
}

.sdpp-upload-processing.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.sdpp-upload-processing-card {
    width: min(520px, 100%);
    display: grid;
    gap: 18px;
    padding: 32px 28px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(255, 247, 239, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.46);
    box-shadow: 0 28px 72px rgba(15, 23, 42, 0.28);
}

.sdpp-upload-processing-spinner {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 4px solid rgba(255, 122, 26, 0.16);
    border-top-color: #ff7a1a;
    animation: sdpp-upload-spin 0.9s linear infinite;
}

.sdpp-upload-processing-eyebrow {
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ff7a1a;
}

.sdpp-upload-processing-title {
    margin: -6px 0 0;
    font-size: clamp(1.8rem, 4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #10233f;
}

.sdpp-upload-processing-message {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: #67778e;
}

.sdpp-upload-processing-progress {
    display: grid;
    gap: 12px;
}

.sdpp-upload-processing-bar {
    height: 12px;
    border-radius: 999px;
    background: rgba(123, 143, 171, 0.14);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.sdpp-upload-processing-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff7a1a 0%, #ff9a3d 100%);
    transition: width 0.28s ease;
    box-shadow: 0 0 16px rgba(255, 122, 26, 0.26);
}

.sdpp-upload-processing-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.sdpp-upload-processing-count {
    font-size: 0.98rem;
    font-weight: 800;
    color: #10233f;
}

.sdpp-upload-processing-status {
    font-size: 0.92rem;
    font-weight: 600;
    color: #6f7f95;
}

@keyframes sdpp-upload-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 920px) {
    .hero,
    .editor-shell,
    .order-entry-hero,
    .hero-points {
        grid-template-columns: 1fr;
    }

    .editor-sidebar {
        position: static;
    }

    .admin-topbar,
    .orders-head,
    .editor-head,
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .order-entry-card {
        padding: 26px;
    }
}

@media (max-width: 640px) {
    .shell,
    .admin-shell,
    .editor-shell {
        width: min(100vw - 24px, 1200px);
    }

    h1 {
        font-size: clamp(2.5rem, 13vw, 4rem);
        line-height: 0.98;
    }

    .order-entry-hero {
        gap: 28px;
    }

    .order-entry-card {
        padding: 22px;
        border-radius: 26px;
    }

    .template-pill-grid {
        grid-template-columns: 1fr;
    }

    .sdpp-login-wrapper {
        padding: 20px 12px;
    }

    .sdpp-access-card {
        padding: 24px 18px;
        border-radius: 24px;
        gap: 18px;
    }

    .sdpp-access-title {
        font-size: 1.85rem;
    }

    .sdpp-upload-processing {
        padding: 16px;
    }

    .sdpp-upload-processing-card {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .sdpp-upload-processing-meta {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* Editor Polaroid Styles */

.sdpp-bridge {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    --sdpp-editor-bg: #f8f8f8;
    --sdpp-editor-surface: #ffffff;
    --sdpp-editor-line: #e8e8e8;
    --sdpp-editor-line-strong: #dcdcdc;
    --sdpp-editor-text: #1f2937;
    --sdpp-editor-muted: #667085;
    --sdpp-editor-accent: #ff6a00;
    background: linear-gradient(180deg, #fcfcfc 0%, #f3f3f3 100%);
}

.sdpp-editor-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--sdpp-editor-line);
    padding: 14px 0;
    position: static;
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.04);
}

.sdpp-editor-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.sdpp-editor-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 18px;
}

.sdpp-logo-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    color: #ff7a1a;
}

.sdpp-logo-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.sdpp-logo-text {
    color: var(--sdpp-editor-text);
}

.sdpp-editor-order-info {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.sdpp-order-label {
    font-size: 14px;
    color: #6f7f95;
    font-weight: 500;
}

.sdpp-order-id {
    font-size: 18px;
    font-weight: 700;
    color: var(--sdpp-editor-accent);
}

.sdpp-store-badge {
    background: #fff7ed;
    color: #c2410c;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #fed7aa;
    font-size: 13px;
    font-weight: 600;
}

.sdpp-editor-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: flex-end;
}

.sdpp-progress-text {
    font-size: 13px;
    color: var(--sdpp-editor-muted);
    font-weight: 600;
}

.sdpp-progress-bar {
    height: 4px;
    background: #ececec;
    border-radius: 999px;
    overflow: hidden;
}

.sdpp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6a00, #ff8c3a);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 999px;
}

.sdpp-bridge-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 24px;
    overflow: auto;
}

.sdpp-editor-preview {
    width: 100%;
    max-width: 1320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--sdpp-editor-bg);
    border: 1px solid var(--sdpp-editor-line);
    border-radius: 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sdpp-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    min-height: 560px;
    padding: 80px 32px;
    text-align: center;
    color: var(--sdpp-editor-muted);
    background: var(--sdpp-editor-surface);
    border: 1px solid var(--sdpp-editor-line);
    border-radius: 20px;
}

.sdpp-empty-icon {
    width: 96px;
    height: 96px;
    color: #d97706;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 6px;
}

.sdpp-empty-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.sdpp-empty-state h2 {
    font-size: 28px;
    margin: 0;
    color: var(--sdpp-editor-text);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.sdpp-empty-state p {
    margin: 0;
    font-size: 16px;
    max-width: 420px;
    line-height: 1.6;
}

.sdpp-photo-editor {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--sdpp-editor-surface);
    border-radius: 20px;
    border: 1px solid var(--sdpp-editor-line);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.sdpp-photo-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 24px;
    border-bottom: 1px solid #efefef;
    background: #ffffff;
}

.sdpp-photo-editor-header h3 {
    font-size: 19px;
    margin: 0;
    color: var(--sdpp-editor-text);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.sdpp-editor-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sdpp-editor-upload-btn {
    min-width: 136px;
}

.sdpp-photo-editor .sdpp-editor-upload-btn {
    background: #ff7a1a;
    color: #ffffff;
    border: 1px solid #ff7a1a;
    box-shadow: none;
}

.sdpp-photo-editor .sdpp-editor-upload-btn:hover:not(:disabled) {
    background: #f06d0a;
    border-color: #f06d0a;
    transform: none;
    box-shadow: none;
}

.sdpp-bridge:not(.sdpp-bridge-sheet) .sdpp-btn {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    box-shadow: none;
}

.sdpp-bridge:not(.sdpp-bridge-sheet) .sdpp-btn-primary {
    background: linear-gradient(180deg, #ff7b1a 0%, #ff6a00 100%);
    color: #ffffff;
    border: 1px solid #ff6a00;
}

.sdpp-bridge:not(.sdpp-bridge-sheet) .sdpp-btn-primary:hover:not(:disabled) {
    transform: none;
    background: linear-gradient(180deg, #ff6f08 0%, #f25f00 100%);
    box-shadow: none;
}

.sdpp-bridge:not(.sdpp-bridge-sheet) .sdpp-btn-secondary {
    background: #ffffff;
    color: #344054;
    border: 1px solid #e5e7eb;
}

.sdpp-bridge:not(.sdpp-bridge-sheet) .sdpp-btn-secondary:hover:not(:disabled) {
    transform: none;
    background: #f5f5f5;
    box-shadow: none;
}

.sdpp-photo-editor .sdpp-btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 6px;
    border: 1px solid #ff6a00;
    background: #ff6a00;
    color: #ffffff;
    box-shadow: none;
}

.sdpp-photo-editor .sdpp-btn-icon:hover:not(:disabled) {
    background: #e86000;
    border-color: #e86000;
    transform: none;
}

.sdpp-photo-editor .sdpp-btn-icon svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: currentColor;
}

.sdpp-photo-editor .sdpp-nav-indicator {
    color: var(--sdpp-editor-muted);
    font-weight: 600;
    min-width: 62px;
}

.sdpp-btn {
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sdpp-btn-primary {
    background: linear-gradient(135deg, #ff7a1a, #ff9a3d);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 122, 26, 0.3);
}

.sdpp-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 122, 26, 0.4);
}

.sdpp-btn-secondary {
    background: rgba(255, 122, 26, 0.08);
    color: #ff7a1a;
    border: 1px solid rgba(255, 122, 26, 0.2);
}

.sdpp-btn-secondary:hover:not(:disabled) {
    background: rgba(255, 122, 26, 0.12);
}

.sdpp-btn-icon {
    padding: 8px;
    background: transparent;
    color: #10233f;
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
}

.sdpp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sdpp-btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

.sdpp-nav-indicator {
    font-size: 14px;
    color: #6f7f95;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

.sdpp-cropper-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    background: #f8f8f8;
}

.sdpp-bridge:not(.sdpp-bridge-sheet) .sdpp-cropper-container {
    max-width: none;
    min-height: 560px;
    padding: 52px 24px;
    aspect-ratio: auto;
}

.sdpp-polaroid-frame {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sdpp-polaroid-frame > *,
#dynamic-polaroid-frame,
#dynamic-cropper-slots,
#bridge-cropper-wrapper,
#bridge-preview-image,
.sdpp-polaroid-footer {
    border-radius: 0 !important;
}

.sdpp-bridge:not(.sdpp-bridge-sheet) .sdpp-polaroid-frame {
    max-width: 373px;
}

.sdpp-cropper-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 20.4688 / 22.9688;
    overflow: hidden;
    background: #f2f2f2;
}

.sdpp-editor-upload-prompt {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px 24px;
    text-align: center;
    color: var(--sdpp-editor-text);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 248, 0.96));
    border: 1px dashed #d6d6d6;
    cursor: pointer;
    z-index: 5;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.sdpp-editor-upload-prompt.is-visible {
    display: flex;
}

.sdpp-editor-upload-prompt.is-dragover {
    border-color: rgba(255, 106, 0, 0.65);
    background: #fffaf5;
}

.sdpp-editor-upload-prompt-icon {
    width: 72px;
    height: 72px;
    color: var(--sdpp-editor-accent);
}

.sdpp-editor-upload-prompt-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.sdpp-editor-upload-prompt strong {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    max-width: 260px;
    letter-spacing: -0.02em;
}

.sdpp-editor-upload-prompt-hint {
    max-width: 280px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--sdpp-editor-muted);
}

.sdpp-upload-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
    z-index: 950;
}

.sdpp-upload-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
    z-index: 960;
}

.sdpp-upload-modal.is-open,
.sdpp-upload-modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.sdpp-upload-modal-card {
    width: min(960px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid var(--sdpp-editor-line);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);
    padding: 24px;
    display: grid;
    gap: 18px;
}

.sdpp-upload-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.sdpp-upload-modal-head h2 {
    margin: 0;
    font-size: 22px;
    color: var(--sdpp-editor-text);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.sdpp-upload-modal-head p {
    margin: 6px 0 0;
    color: var(--sdpp-editor-muted);
    font-size: 14px;
}

.sdpp-upload-modal-close {
    white-space: nowrap;
}

.sdpp-upload-modal-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    background: #fafafa;
    border: 1px solid #ededed;
    border-radius: 12px;
    font-size: 13px;
    color: var(--sdpp-editor-muted);
    font-weight: 700;
}

.sdpp-upload-modal-count {
    color: var(--sdpp-editor-text);
    font-size: 15px;
}

.sdpp-upload-modal-dropzone {
    padding: 36px 24px;
    margin: 0;
    border: 1px dashed #d7d7d7;
    border-radius: 14px;
    background: #fcfcfc;
}

.sdpp-upload-modal-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px;
    background: #fafafa;
    border: 1px solid #ededed;
    border-radius: 12px;
}

.sdpp-upload-modal-status {
    min-height: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sdpp-editor-muted);
}

.sdpp-upload-modal-status.is-error {
    color: #b42318;
}

.sdpp-upload-modal-status.is-success {
    color: #137333;
}

.sdpp-upload-modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.sdpp-upload-modal-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 24px;
    text-align: center;
    color: var(--sdpp-editor-muted);
    background: #fafafa;
    border: 1px dashed #d8d8d8;
    border-radius: 14px;
    font-weight: 600;
}

.sdpp-upload-modal-item {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.sdpp-upload-modal-item:hover {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.sdpp-upload-modal-item.is-selected {
    border: 2px solid var(--sdpp-editor-accent);
    background: #fffaf5;
}

.sdpp-upload-modal-item.is-pending::after {
    content: 'Nova';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 122, 26, 0.9);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
}

.sdpp-upload-modal-thumb {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: #f2f2f2;
}

.sdpp-upload-modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sdpp-upload-modal-name {
    font-size: 12px;
    font-weight: 600;
    color: #344054;
    line-height: 1.35;
    word-break: break-word;
}

.sdpp-upload-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 4px;
}

#dynamic-cropper-slots {
    position: relative;
    z-index: 1;
}

#bridge-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: grab;
    user-select: none;
    touch-action: none;
    -webkit-user-drag: none;
    transform-origin: 0 0;
    max-width: none;
    max-height: none;
}

#bridge-preview-image.grabbing {
    cursor: grabbing;
}

.sdpp-polaroid-footer {
    position: relative;
    width: 100%;
    height: 91px;
    background: #ffffff;
    border-top: 1px solid #efefef;
    border-radius: 0 !important;
    padding: 0;
    min-height: 0;
}

.sdpp-bridge:not(.sdpp-bridge-sheet) #sdpp-template-text-area {
    display: block !important;
}

.sdpp-text-overlay {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: text;
    z-index: 2;
}

.sdpp-bridge-text-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 12px;
    box-sizing: border-box;
    font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.55);
    user-select: none;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.2s ease;
}

.sdpp-text-element {
    position: absolute;
    font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 14px;
    color: #000000;
    cursor: grab;
    user-select: none;
    touch-action: none;
    padding: 12px 18px;
    box-sizing: border-box;
    display: inline-block;
    max-width: 100%;
    text-align: center;
    white-space: pre-wrap;
    word-break: break-word;
    outline: none;
    transition: outline-color 0.2s ease;
    z-index: 2;
}

.sdpp-text-element:active {
    cursor: grabbing;
}

.sdpp-bridge-text-content {
    display: inline;
}

.sdpp-bridge-text-ctl {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    user-select: none;
    touch-action: none;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
    z-index: 3;
    font-size: 16px;
    top: -10px;
}

.sdpp-bridge-text-ctl-delete {
    right: -10px;
    font-size: 18px;
    line-height: 1;
}

.sdpp-bridge-text-ctl-duplicate {
    left: -10px;
}

.sdpp-emoji-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.sdpp-editor-footer {
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--sdpp-editor-line);
    padding: 16px 0;
    position: sticky;
    bottom: 0;
    z-index: 100;
    box-shadow: 0 -2px 14px rgba(15, 23, 42, 0.04);
}

.sdpp-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.sdpp-footer-left {
    flex: 1;
}

.sdpp-footer-status {
    font-size: 14px;
    color: var(--sdpp-editor-muted);
    font-weight: 500;
}

.sdpp-footer-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Bottom Sheet for Text Editing */

.sdpp-text-bs-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 900;
}

.sdpp-text-bs-overlay.sdpp-text-bs-overlay-open {
    background: rgba(0, 0, 0, 0.4);
    opacity: 1;
    pointer-events: all;
}

.sdpp-text-bs {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 950;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.sdpp-text-bs.sdpp-text-bs-open {
    transform: translateY(0);
}

.sdpp-text-bs-handle {
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sdpp-text-bs-handle::before {
    content: '';
    width: 40px;
    height: 4px;
    background: #d0d0d0;
    border-radius: 2px;
}

.sdpp-text-bs-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.sdpp-text-bs-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 16px;
}

.sdpp-text-bs-row2 {
    align-items: center;
    gap: 8px;
}

.sdpp-text-bs-row3 {
    gap: 8px;
    flex-wrap: wrap;
}

.sdpp-bs-label {
    font-size: 13px;
    font-weight: 600;
    color: #6f7f95;
    white-space: nowrap;
}

.sdpp-bs-text-input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    transition: border-color 0.2s ease;
}

.sdpp-bs-text-input:focus {
    outline: none;
    border-color: #ff7a1a;
}

.sdpp-bs-color-input {
    width: 50px;
    height: 44px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    cursor: pointer;
    padding: 2px;
}

.sdpp-bs-size-slider {
    flex: 1;
    min-width: 100px;
    height: 4px;
    cursor: pointer;
}

.sdpp-bs-size-label {
    font-size: 13px;
    font-weight: 600;
    color: #10233f;
    min-width: 30px;
    text-align: right;
}

.sdpp-bs-font-select {
    flex: 1;
    min-width: 150px;
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.sdpp-bs-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 100px;
}

.sdpp-bs-btn-emoji {
    background: rgba(255, 122, 26, 0.08);
    color: #ff7a1a;
    border: 1px solid rgba(255, 122, 26, 0.2);
}

.sdpp-bs-btn-emoji:hover {
    background: rgba(255, 122, 26, 0.12);
}

.sdpp-bs-btn-add {
    background: linear-gradient(135deg, #ff7a1a, #ff9a3d);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 122, 26, 0.3);
}

.sdpp-bs-btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 122, 26, 0.4);
}

.sdpp-bs-btn-delete {
    background: rgba(160, 52, 38, 0.08);
    color: #a03426;
    border: 1px solid rgba(160, 52, 38, 0.2);
}

.sdpp-bs-btn-delete:hover {
    background: rgba(160, 52, 38, 0.12);
}

.sdpp-bs-emoji-tray {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid #f0f0f0;
    overflow-y: auto;
    max-height: 200px;
}

.sdpp-bs-emoji-item {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sdpp-bs-emoji-item:hover {
    background: rgba(255, 122, 26, 0.1);
    border-color: #ff7a1a;
}

/* Responsive */

@media (max-width: 768px) {
    .sdpp-editor-header-inner {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
    }

    .sdpp-editor-order-info {
        justify-content: flex-start;
    }

    .sdpp-footer-inner {
        flex-direction: column;
        padding: 0 16px;
    }

    .sdpp-footer-right {
        width: 100%;
        order: -1;
    }

    .sdpp-footer-right .sdpp-btn {
        flex: 1;
    }

    .sdpp-photo-editor-header {
        padding: 16px;
        align-items: flex-start;
        justify-content: center;
    }

    #current-photo-label {
        display: none;
    }

    .sdpp-editor-nav {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-evenly;
        width: 100%;
    }

    .sdpp-editor-upload-btn {
        display: flex;
        width: 100%;
        min-width: 0;
        max-width: 50px;
        padding: 0 8px;
        justify-content: center;
        margin: 0 auto;
    }

    .sdpp-bridge-main {
        padding: 10px 4px;
    }

    .sdpp-photo-editor {
        border-radius: 16px;
    }

    .sdpp-editor-preview {
        padding: 4px;
        border: 0;
        border-radius: 18px;
    }

    .sdpp-bridge:not(.sdpp-bridge-sheet) .sdpp-cropper-container {
        min-height: 400px;
        padding: 24px 12px;
    }

    .sdpp-text-bs-body {
        padding: 16px;
    }

    .sdpp-text-bs-row {
        margin-bottom: 12px;
    }

    .sdpp-upload-modal-card {
        padding: 18px;
    }

    .sdpp-upload-modal-head,
    .sdpp-upload-modal-summary,
    .sdpp-upload-modal-toolbar,
    .sdpp-upload-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .sdpp-upload-modal-actions .sdpp-btn,
    .sdpp-upload-modal-toolbar .sdpp-btn {
        width: 100%;
    }
}

