| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296 |
- .studiou-fpp-product {
- max-width: 800px;
- margin: 20px 0;
- font-family: inherit;
- }
- .studiou-fpp-product-header {
- display: flex;
- gap: 20px;
- margin-bottom: 30px;
- align-items: flex-start;
- }
- .studiou-fpp-product-image {
- flex: 0 0 200px;
- }
- .studiou-fpp-product-image img {
- max-width: 100%;
- height: auto;
- border-radius: 4px;
- }
- .studiou-fpp-product-info {
- flex: 1;
- }
- .studiou-fpp-product-title {
- margin: 0 0 10px;
- font-size: 1.6em;
- }
- .studiou-fpp-product-description {
- color: #555;
- line-height: 1.6;
- }
- .studiou-fpp-section {
- margin-bottom: 25px;
- }
- .studiou-fpp-section h3 {
- margin: 0 0 12px;
- font-size: 1.2em;
- border-bottom: 2px solid #eee;
- padding-bottom: 8px;
- }
- /* Variants table */
- .studiou-fpp-variants-table-wrap {
- overflow-x: auto;
- }
- .studiou-fpp-variants-table {
- width: 100%;
- border-collapse: collapse;
- border: 1px solid #ddd;
- }
- .studiou-fpp-variants-table th,
- .studiou-fpp-variants-table td {
- padding: 10px 14px;
- text-align: left;
- border-bottom: 1px solid #eee;
- }
- .studiou-fpp-variants-table thead th {
- background: #f7f7f7;
- font-weight: 600;
- border-bottom: 2px solid #ddd;
- }
- .studiou-fpp-variants-table .studiou-fpp-col-select {
- width: 40px;
- text-align: center;
- }
- .studiou-fpp-variants-table .studiou-fpp-col-price {
- white-space: nowrap;
- font-weight: 600;
- }
- .studiou-fpp-variant-row {
- cursor: pointer;
- transition: background 0.15s;
- }
- .studiou-fpp-variant-row:hover {
- background: #f5f9ff;
- }
- .studiou-fpp-variant-row.studiou-fpp-variant-selected {
- background: #e8f4fd;
- }
- .studiou-fpp-variant-row input[type="radio"] {
- margin: 0;
- cursor: pointer;
- }
- /* Upload area */
- .studiou-fpp-upload-info {
- color: #777;
- font-size: 0.9em;
- margin-bottom: 12px;
- }
- .studiou-fpp-upload-area {
- border: 2px dashed #ccc;
- border-radius: 8px;
- padding: 40px 20px;
- text-align: center;
- cursor: pointer;
- transition: border-color 0.2s, background 0.2s;
- position: relative;
- }
- .studiou-fpp-upload-area:hover,
- .studiou-fpp-upload-area.studiou-fpp-dragover {
- border-color: #2271b1;
- background: #f0f7ff;
- }
- .studiou-fpp-upload-icon {
- font-size: 48px;
- width: 48px;
- height: 48px;
- color: #999;
- display: block;
- margin: 0 auto 10px;
- }
- .studiou-fpp-upload-area:hover .studiou-fpp-upload-icon {
- color: #2271b1;
- }
- .studiou-fpp-upload-prompt p {
- margin: 0;
- color: #777;
- }
- .studiou-fpp-file-input {
- display: none;
- }
- /* Progress bar */
- .studiou-fpp-progress {
- margin-top: 15px;
- display: flex;
- align-items: center;
- gap: 12px;
- }
- .studiou-fpp-progress-bar {
- flex: 1;
- height: 20px;
- background: #eee;
- border-radius: 10px;
- overflow: hidden;
- }
- .studiou-fpp-progress-fill {
- height: 100%;
- background: #2271b1;
- border-radius: 10px;
- transition: width 0.3s;
- }
- .studiou-fpp-progress-text {
- font-weight: 600;
- min-width: 40px;
- text-align: right;
- }
- /* Preview */
- .studiou-fpp-preview {
- display: flex;
- align-items: center;
- gap: 15px;
- padding: 15px;
- background: #f9f9f9;
- border: 1px solid #ddd;
- border-radius: 6px;
- margin-top: 15px;
- }
- .studiou-fpp-preview-image {
- flex: 0 0 80px;
- }
- .studiou-fpp-preview-image img {
- max-width: 80px;
- max-height: 80px;
- border-radius: 4px;
- display: block;
- }
- .studiou-fpp-preview-info {
- flex: 1;
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 10px;
- }
- .studiou-fpp-preview-name {
- font-weight: 500;
- word-break: break-all;
- }
- .studiou-fpp-remove-file {
- flex-shrink: 0;
- color: #b32d2e !important;
- border-color: #b32d2e !important;
- }
- .studiou-fpp-remove-file:hover {
- background: #b32d2e !important;
- color: #fff !important;
- }
- /* Actions / Add to cart */
- .studiou-fpp-actions {
- padding-top: 15px;
- border-top: 2px solid #eee;
- }
- .studiou-fpp-add-to-cart-btn {
- padding: 12px 30px !important;
- font-size: 1.1em !important;
- font-weight: 600;
- }
- .studiou-fpp-add-to-cart-btn:disabled {
- opacity: 0.5;
- cursor: not-allowed;
- }
- /* Cart uploaded photo preview */
- .studiou-fpp-cart-preview {
- margin-top: 8px;
- }
- .studiou-fpp-cart-preview img {
- max-width: 70px;
- max-height: 70px;
- object-fit: cover;
- border-radius: 4px;
- border: 1px solid #ddd;
- }
- /* Messages */
- .studiou-fpp-msg {
- padding: 10px 15px;
- border-radius: 4px;
- margin-bottom: 12px;
- font-size: 0.95em;
- }
- .studiou-fpp-msg-error {
- background: #fef1f1;
- color: #b32d2e;
- border: 1px solid #f5c6c6;
- }
- .studiou-fpp-msg-success {
- background: #ecf7ed;
- color: #1e7e34;
- border: 1px solid #c3e6c3;
- }
- .studiou-fpp-error {
- color: #b32d2e;
- font-style: italic;
- }
- /* Responsive */
- @media (max-width: 600px) {
- .studiou-fpp-product-header {
- flex-direction: column;
- }
- .studiou-fpp-product-image {
- flex: none;
- text-align: center;
- }
- .studiou-fpp-preview {
- flex-direction: column;
- text-align: center;
- }
- .studiou-fpp-preview-info {
- flex-direction: column;
- }
- }
|