.frame-config-dialog{width:min(680px,calc(100% - 40px));max-width:680px;max-height:none;height:min(960px,92dvh);padding:0;border-radius:16px;overflow:hidden;background:#fff;color:#252525}
.frame-config-dialog[open]{display:flex;flex-direction:column}
.frame-config-header{display:flex;align-items:center;gap:8px;padding:12px 16px;flex-shrink:0}
.frame-config-header h2{font-size:18px;line-height:1.5;text-align:center;flex:1;margin:0;font-weight:600;overflow-wrap:anywhere}
.frame-config-header button,.frame-header-spacer{width:40px;height:40px;flex-shrink:0}
.frame-config-header button{font-size:32px;border-radius:8px;line-height:1}
.frame-config-header button:hover{background:#f6f6f6}
.frame-tabs{display:flex;border-bottom:1px solid #f0f0f0;padding:0 24px;flex-shrink:0}
.frame-tabs button{position:relative;flex:1;min-height:46px;font-size:14px}
.frame-tabs button[aria-selected=true]{color:#a67c00}
.frame-tabs button[aria-selected=true]:after{content:"";position:absolute;bottom:-1px;width:56px;height:3px;background:var(--yellow);left:50%;transform:translateX(-50%)}
.frame-config-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ddd transparent;padding:0 30px 24px}
.frame-config-dialog select,.frame-config-dialog textarea{font:inherit;color:inherit}
.frame-line{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;border-bottom:1px solid #f4f4f4;font-size:14px}
.frame-required{color:#c64242;margin-right:2px}
.frame-line select{max-width:65%;padding:10px 5px;border:0;background:#fff;font-size:14px;text-align:right}
.frame-size-value{min-width:0;max-width:72%;text-align:right;padding:6px 0}
.frame-size-value select{max-width:100%;width:100%}
.frame-size-value small{display:block;font-size:12px;color:#777;line-height:1.6;padding:0 5px 6px;overflow-wrap:anywhere}
.frame-craft-title{font-size:14px;font-weight:400;margin:22px 0 18px}
.frame-choice-group{min-width:0;margin:0 0 24px;padding:16px 0 0;border:0;border-top:1px dashed #ebebeb}
.frame-choice-group legend{padding:0 18px;margin:0 auto;color:#888;font-size:13px;text-align:center}
.frame-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.frame-choice{position:relative;cursor:pointer;min-width:0}
.frame-choice input{position:absolute;left:0;top:0;width:1px;height:1px;margin:0;opacity:0}
.frame-choice>span{display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #e4e4e4;border-radius:5px;min-height:42px;height:100%;padding:8px 10px;font-size:14px;text-align:center;line-height:1.45;overflow-wrap:anywhere;background:#fff}
.frame-choice small{font-size:12px;display:block}
.frame-choice input:checked+span{background:var(--yellow);border-color:var(--yellow);color:#171717}
.frame-choice input:focus-visible+span{outline:2px solid #946b00;outline-offset:3px}
.frame-choice:hover>span{border-color:#b58a00}
.frame-choice-accessory .frame-choices{grid-template-columns:repeat(3,minmax(0,1fr))}
.frame-choice-packaging .frame-choices,.frame-choice-sides .frame-choices{grid-template-columns:1fr;max-width:440px}
.frame-color-choice{display:flex;align-items:center;gap:5px;color:#a67c00}
.frame-color-choice input{accent-color:#b68b00;margin:0}
.frame-quantity{display:flex;align-items:center;gap:8px;color:#888}
.frame-quantity input{width:110px;max-width:100%;padding:9px;border:1px solid #e4e4e4;border-radius:5px;text-align:center;color:#252525}
.frame-quantity button{width:36px;height:40px;background:#f5f5f5;border:1px solid #e4e4e4;border-radius:4px;color:#444;font-size:20px}
.frame-quantity button:disabled{cursor:not-allowed;opacity:.4}
.table-display-config .frame-quantity{gap:5px}
.table-display-config .frame-quantity input{width:58px;appearance:textfield;-moz-appearance:textfield}
.table-display-config .frame-quantity input::-webkit-inner-spin-button,.table-display-config .frame-quantity input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.table-display-config .frame-choice-accessory .frame-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
.frame-remarks{margin-top:20px;font-size:14px}
.frame-remarks label{display:block;margin-bottom:10px}
.frame-remarks small{font-size:12px;color:#999;margin-left:5px}
.frame-remarks textarea{display:block;width:100%;resize:vertical;min-height:70px;max-height:180px;border:1px solid #e4e4e4;border-radius:5px;padding:10px;font-size:13px;line-height:1.6}
.frame-config-dialog select:focus-visible,.frame-config-dialog textarea:focus-visible{outline:2px solid #946b00;outline-offset:3px}
.frame-selection{margin-top:22px;padding:14px 16px;background:#fafaf7;border-radius:6px;font-size:12px;line-height:1.8}
.frame-selection h3{font-size:13px;margin:0 0 6px;font-weight:500}
.frame-selection p{margin:0 0 8px;color:#767676;overflow-wrap:anywhere}
.frame-selection strong{font-weight:500}
.frame-config-footer{flex-shrink:0;border-top:1px solid #f0f0f0;padding:12px 30px 16px;background:#fff}
.frame-config-footer>p:first-child{margin:0 0 9px;color:#888;font-size:11px;line-height:1.6}
.frame-config-footer>button{display:block;min-height:46px;width:100%;border-radius:6px;background:var(--yellow);font-size:15px;font-weight:600}
.frame-feedback{font-size:12px;line-height:1.7;color:#876300;margin:8px 0 0}
.frame-feedback:empty{display:none}
.frame-display{margin:24px 0 0;background:#f8fafb;border-radius:8px;overflow:hidden}
.frame-display img{display:block;width:100%;height:auto;object-fit:contain}
.frame-display figcaption{text-align:center;font-size:11px;color:#888;padding:12px}
.frame-display-note{font-size:13px;line-height:1.8;color:#888;text-align:center;margin:20px 12px}
@media(max-width:640px){.frame-config-dialog{width:100%;max-width:none;height:100dvh;max-height:100dvh;border:0;border-radius:0;margin:0}.frame-config-header{padding:8px 8px 4px}.frame-config-header h2{font-size:16px}.frame-config-header button,.frame-header-spacer{width:32px}.frame-tabs{padding:0 14px}.frame-config-scroll{padding:0 16px 20px}.frame-line{min-height:54px}.frame-choices{gap:8px}.frame-choice>span{font-size:13px;padding:7px 8px;min-height:42px}.frame-choice-group{margin-bottom:24px}.frame-choice-packaging .frame-choices,.frame-choice-sides .frame-choices{max-width:100%}.frame-config-footer{padding:10px 16px calc(12px + env(safe-area-inset-bottom))}}
@media(max-height:500px){.frame-config-dialog{height:100dvh;max-height:100dvh}.frame-config-header{padding-top:2px;padding-bottom:2px}.frame-tabs button{min-height:36px}.frame-config-footer{padding-top:6px;padding-bottom:6px}.frame-config-footer>button{min-height:38px}}
.photo-display-config .frame-config-scroll{padding-left:8px;padding-right:8px}
.photo-display-config .frame-choices{gap:8px 4px}
.photo-display-config .frame-choice>span{padding:7px 5px;font-size:13px;min-height:38px;line-height:1.4}
.photo-display-config .frame-choice-frame .frame-choices,.photo-display-config .frame-choice-film .frame-choices{grid-template-columns:repeat(6,minmax(0,1fr))}
.photo-display-config .frame-choice-frame .frame-choice,.photo-display-config .frame-choice-film .frame-choice{grid-column:span 3}
.photo-display-config .frame-choice-frame .frame-choice:last-child,.photo-display-config .frame-choice-film .frame-choice:last-child{grid-column:span 4}
.photo-display-config .frame-choice-packaging .frame-choices{max-width:67%}
.photo-display-config .frame-quantity{gap:3px}
.photo-display-config .frame-quantity input{width:38px;height:26px;padding:3px;border:0;border-radius:0;background:#f5f5f5}
.photo-display-config .frame-quantity button{width:26px;height:26px;border:0;border-radius:0;font-size:18px}
.photo-display-config .frame-selection{border-top:6px solid #f8f8f8;border-radius:0;margin:0 -8px;padding:16px 8px;background:#fff}
.photo-display-config .frame-selection h3{display:inline-block;font-size:15px;box-shadow:inset 0 -5px var(--yellow);margin-bottom:10px}
@media(max-width:640px){.photo-display-config .frame-config-header{padding-top:4px;padding-bottom:0}.photo-display-config .frame-tabs button{min-height:40px}.photo-display-config .frame-line{min-height:44px}.photo-display-config .frame-craft-title{margin:16px 0}.photo-display-config .frame-choice-group{padding-top:12px;margin-bottom:20px}.photo-display-config .frame-config-footer{padding-top:7px;padding-bottom:calc(8px + env(safe-area-inset-bottom))}.photo-display-config .frame-config-footer>p:first-child{font-size:10px;margin-bottom:6px}.photo-display-config .frame-config-footer>button{min-height:40px}}
