{
  "namespace": "berwick_trial_conversion",

  //---------------------------------------------------------------------------
  // Padding
  //---------------------------------------------------------------------------

  "padding_horizontal": {
    "type": "panel",
    "size": [ 2, 0 ]
  },

  "padding_vertical": {
    "type": "panel",
    "size": [ 0, 2 ]
  },

  "padding_vertical_3": {
    "type": "panel",
    "size": [ 0, 3 ]
  },

  "background_image": {
    "type": "image",
    "layer": 1,
    "size": [ "100%-2px", "100%" ],
    "texture": "textures/ui/dark_bg"
  },

  "title_image": {
    "type": "image",
    "layer": 4,
    "size": [ "100% - 2px", "100% - 2px" ],
    "texture": "$title_texture"
  },

  //---------------------------------------------------------------------------
  // Image section
  //---------------------------------------------------------------------------

  "focus_border": {
    "type": "image",
    "texture": "textures/ui/square_image_border_white",
    "color": "$non_interact_border_color"
  },

  "pack_image": {
    "type": "image",
    "layer": 3,
    "size": [ "100%-2px", "100%-2px" ],
    "bindings": [
      {
        "binding_name": "#pack_texture",
        "binding_name_override": "#texture",
        "binding_type": "collection",
        "binding_collection_name": "$collection_name"
      }
    ]
  },

  "pack_image_panel": {
    "type": "panel",
    "size": [ 70, 41 ],
    "controls": [
      {
        "pack_image@win10_trial_conversion.pack_image_with_border": {}
      }
    ]
  },

  "title_image_border": {
    "type": "image",
    "size": [ 168, 96 ],
    "layer": 3,
    "texture": "textures/ui/Black",
    "controls": [
      {
        "image@win10_trial_conversion.title_image": {
        }
      }
    ]
  },

  "pack_image_with_border": {
    "type": "image",
    "size": [ "100%", "100%" ],
    "layer": 2,
    "texture": "textures/ui/Black",
    "controls": [
      {
        "image@pack_image": {}
      }
    ]
  },
  //---------------------------------------------------------------------------
  // label
  //---------------------------------------------------------------------------

  "label_panel": {
    "type": "label",
    "size": [ "100%", "default" ],
    "layer": 3,
    "$text_font_scale_factor|default": 1,
    "font_scale_factor": "$text_font_scale_factor",
    "text": "$text",
    "color": "$main_header_text_color"
  },

  //---------------------------------------------------------------------------
  // Buy Button Panel
  //---------------------------------------------------------------------------

  "button_panel": {
    "type": "stack_panel",
    "size": [ "100%", 29 ],
    "orientation": "horizontal",
    "controls": [
      { "padding_5@berwick_trial_conversion.padding_horizontal": {} },
      { "buy_now_button@berwick_trial_conversion.buy_now_button": {} },
      { "padding_6@berwick_trial_conversion.padding_horizontal": {} }
    ]
  },

  "buy_now_button@common_buttons.light_content_button": {
    "size": [ "100% - 4px", "100%" ],
    "$button_content": "berwick_trial_conversion.buy_now_label"
  },

  "buy_now_label": {
    "type": "panel",
    "layer": 2,
    "controls": [
      {
        "button_label@berwick_trial_conversion.label_panel": {
          "text": "$button_text",
          "text_alignment": "center",
          "color": "$text_color"
        }
      }
    ]
  },

  //---------------------------------------------------------------------------
  // focus border
  //---------------------------------------------------------------------------

  "is_focused@focus_border": {
    "size": [ "100%", "100%" ],
    "layer": 3
  },

  "filler_panel": {
    "type": "panel",
    "layer": 1
  },

  "focus_border_button@common.button": {
    "size": [ "100%", "100%" ],
    "sound_volume": 0.0,
    "$pressed_button_name": "button.pack_select",
    "controls": [
      { "default@berwick_trial_conversion.filler_panel": {} },
      { "hover@berwick_trial_conversion.is_focused": {} },
      { "pressed@berwick_trial_conversion.is_focused": {} }
    ]
  },

  //---------------------------------------------------------------------------
  // Collection Panels
  //---------------------------------------------------------------------------

  "collection_main_panel": {
    "type": "stack_panel",
    "orientation": "vertical",
    "anchor_to": "top_middle",
    "anchor_from": "top_middle",
    "size": [ "100%", "100%c" ],
    "controls": [
      { "padding_1@berwick_trial_conversion.padding_vertical": {} },
      {
        "title_panel@berwick_trial_conversion.label_panel": {
          "text_alignment": "center",
          "text": "$title_text"
        }
      },
      { "padding_2@berwick_trial_conversion.padding_vertical": {} },
      {
        "title_image_panel": {
          "type": "panel",
          "size": [ "100%", "100%c" ],
          "anchor_to": "top_middle",
          "anchor_from": "top_middle",
          "controls": [
            {
              "border_image@berwick_trial_conversion.title_image_border": {}
            }
          ]
        }
      },
      { "padding_3@berwick_trial_conversion.padding_vertical": {} },
      {
        "offer_panel": {
          "type": "stack_panel",
          "orientation": "horizontal",
          "size": [ "100%", "100%c" ],
          "controls": [
            { "padding_1@berwick_trial_conversion.padding_horizontal": {} },
            {
              "label_panel": {
                "type": "panel",
                "size": [ "100%", 38 ],
                "controls": [
                  {
                    "offer_label@berwick_trial_conversion.label_panel": {
                      "size": [ "100% - 3px", "default" ],
                      "text_alignment": "center",
                      "text": "$offer_text"
                    }
                  }
                ]
              }
            },
            { "padding_2@berwick_trial_conversion.padding_horizontal": {} }
          ]
        }
      },
      { "padding_4@berwick_trial_conversion.padding_vertical": {} },
      { "button_panel@berwick_trial_conversion.button_panel": {} },
      { "padding_5@berwick_trial_conversion.padding_vertical_3": {} },
      {
        "include_panel": {
          "type": "stack_panel",
          "orientation": "horizontal",
          "size": [ "100%", 9 ],
          "controls": [
            { "padding_1@berwick_trial_conversion.padding_horizontal": {} },
            {
              "include_label@berwick_trial_conversion.label_panel": {
                "size": [ "100% - 3px", "default" ],
                "$text": "trial.includes",
                "font_type": "smooth"
              }
            }
          ]
        }
      }
    ]
  },

  "background_image_with_border": {
    "size": [ "50% - 3px", "100%c" ],
    "type": "image",
    "layer": 1,
    "texture": "textures/ui/Banners",
    "controls": [
      {
        "main_panel_no_buttons@berwick_trial_conversion.collection_main_panel": {
        }
      }
    ]
  },

  //---------------------------------------------------------------------------
  // Main Panels
  //---------------------------------------------------------------------------

  "berwick_trial_conversion_main_panel": {
    "type": "panel",
    "size": [ "100%", "100%" ],
    "controls": [
      {
        "scrolling_panel@common.scrolling_panel": {
          "size": [ "100%", "100%" ],
          "$show_background": false,
          "$scrolling_content": "berwick_trial_conversion.vertical_main_panel",
          "$scrolling_pane_size": [ "100%-4px", "100%" ],
          "$scroll_size": [ 5, "100% - 4px" ],
          "$scroll_bar_left_padding_size": [ 1, 0 ]
        }
      }
    ]
  },

  "vertical_main_panel": {
    "type": "stack_panel",
    "orientation": "vertical",
    "size": [ "100%", "100%c" ],
    "controls": [
      { "padding_1@berwick_trial_conversion.padding_vertical": {} },
      { "panel@berwick_trial_conversion.horizontal_main_panel": {} },
      { "padding_2@berwick_trial_conversion.padding_vertical": {} }
    ]
  },

  "horizontal_main_panel": {
    "type": "stack_panel",
    "orientation": "horizontal",
    "size": [ "100%", "100%cm + 4px" ],
    "controls": [
      { "padding_1@berwick_trial_conversion.padding_horizontal": {} },
      {
        "starter_collection@berwick_trial_conversion.background_image_with_border": {
          "inherit_max_sibling_height": true,
          "$grid_dimension": "#starter_grid_dimension",
          "$collection_name": "starter_list",
          "$pressed_button_name": "button.starter_buy_now_button",
          "$title_texture": "textures/ui/win10_minecraft_startercollection_keyartsmall",
          "$title_text": "trial.starter.collection.title",
          "$button_text": "trial.starter.collection.button",
          "$offer_text": "trial.starter.offer"
        }
      },
      {
        "padding_2@berwick_trial_conversion.padding_horizontal": {}
      },
      {
        "master_collection@berwick_trial_conversion.background_image_with_border": {
          "$grid_dimension": "#master_grid_dimension",
          "$collection_name": "master_list",
          "$pressed_button_name": "button.master_buy_now_button",
          "$title_texture": "textures/ui/win10_minecraft_mastercollection_keyartsmall",
          "$title_text": "trial.master.collection.title",
          "$button_text": "trial.master.collection.button",
          "$offer_text": "trial.master.offer"
        }
      }
    ]
  },

  //---------------------------------------------------------------------------
  // Screen
  //---------------------------------------------------------------------------

  "berwick_trial_conversion_screen@common.base_screen": {
    "button_mappings": [
      {
        "from_button_id": "button.menu_cancel",
        "to_button_id": "button.menu_exit",
        "mapping_type": "global"
      }
    ],
    "$screen_content": "berwick_trial_conversion.berwick_trial_conversion_panel"
  },

  "berwick_trial_conversion_panel@common.fullscreen_header": {
    "$back_button_has_title": true,
    "$button_text": "trial.tabbed_upsell.title",
    "$child_control": "berwick_trial_conversion.berwick_trial_conversion_main_panel"
  }


}